Skip to content

Conversation

@igalakhov
Copy link
Collaborator

This PR rewrites the bot to use newer discord constructs such as slash commands and interaction buttons.

Copy link

@whispersofthedawn whispersofthedawn left a comment

Choose a reason for hiding this comment

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

I haven't run the bot and all yet, but these are a couple minor things that could clean this up a bit. Your discretion on any of them, of course.


/// Utility command for quickly registering/unregistering commands
#[poise::command(prefix_command)]
pub async fn register(ctx: Context<'_>) -> Result<()> {

Choose a reason for hiding this comment

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

If !register is a command, should it be role-locked to the admins/staff? Maybe default to everyone (for other servers) but lock it when you have an env var passed, since this feels like a more impactful action.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, this will be admin protected eventually. It's just there for now for testing purposes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants