Skip to content

Create new Purge command. - #238

Closed
RealYusufIsmail wants to merge 6 commits into
Together-Java:developfrom
BotCraftHub:feature/pruge_and_clear_command
Closed

RealYusufIsmail wants to merge 6 commits into
Together-Java:developfrom
BotCraftHub:feature/pruge_and_clear_command

Conversation

@RealYusufIsmail

Copy link
Copy Markdown
Contributor

This is a draft of the purge command.

As discussed in the purge command issue #17 This command will allow you to delete from one message to another using there message ids.

/purge id(first message) id(last message)

@RealYusufIsmail
RealYusufIsmail requested review from a team as code owners October 30, 2021 12:22
@RealYusufIsmail
RealYusufIsmail marked this pull request as draft October 30, 2021 12:22
@marko-radosavljevic marko-radosavljevic self-assigned this Oct 30, 2021
@Zabuzard

Zabuzard commented Nov 2, 2021 •

Copy link
Copy Markdown
Member

RealYusufIsmail requested your review on this pull request.

Why are you requesting my review on a Draft PR? Is the PR ready now or not? It still has TODO and other stuff.

@RealYusufIsmail

RealYusufIsmail commented Nov 2, 2021 •

Copy link
Copy Markdown
Contributor Author

RealYusufIsmail requested your review on this pull request.

Why are you requesting my review on a Draft PR? Is the PR ready now or not? It still has TODO and other stuff.

I never.

@illuminator3

Copy link
Copy Markdown
Contributor

RealYusufIsmail requested your review on this pull request.

Why are you requesting my review on a Draft PR? Is the PR ready now or not? It still has TODO and other stuff.

I never.

You did.

RealYusufIsmail requested review from Together-Java/moderators and Together-Java/staff-assistants as code owners

@RealYusufIsmail

Copy link
Copy Markdown
Contributor Author

RealYusufIsmail requested your review on this pull request.

Why are you requesting my review on a Draft PR? Is the PR ready now or not? It still has TODO and other stuff.

I never.

You did.

RealYusufIsmail requested review from Together-Java/moderators and Together-Java/staff-assistants as code owners

Well I don't know how I did it. I don't recall requesting a review

@Zabuzard Zabuzard linked an issue Nov 5, 2021 that may be closed by this pull request
@Zabuzard Zabuzard added new command Add a new command or group of commands to the bot priority: low labels Nov 5, 2021
@Zabuzard Zabuzard added this to the Improvement phase 1 milestone Nov 5, 2021
Comment on lines +83 to +84
private static void getBetween0(long firstMessageId, long lastMessageId, MessageChannel mc,
List<String> acc, ReentrantLock lock, Consumer<List<String>> cb) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private static void getBetween0(long firstMessageId, long lastMessageId, MessageChannel mc,
List<String> acc, ReentrantLock lock, Consumer<List<String>> cb) {
private static void getBetween0(long firstMessageId, long lastMessageId, MessageChannel mc,
List<String> acc, ReentrantLock lock, Consumer<List<String>> cb) {

mc, Minecraft?
acc, accuracy?
cb? CubeCraft?

This is about Minecraft?

I don't like the abbreviations myself and I'd prefer longer, more clear names.

I currently can't comment on the behaviour since I'm not sure what "cb" and "acc" their purpose is.

return;
}

final Member bot = Objects.requireNonNull(event.getGuild()).getSelfMember();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some places you use final, some you don't (on local variables)
I'd recommend keeping consistency, and either use it everywhere or nowhere.

@CLAassistant

CLAassistant commented Nov 15, 2021 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Zabuzard

Copy link
Copy Markdown
Member

This PR is in a rather bad state and there was pretty much no activity for 2-3 weeks. On top, the requirements of what such a purge command should do exactly havent been discussed through fully yet.

I am closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new command Add a new command or group of commands to the bot priority: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

purge/clear command

6 participants