Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Rewrite to use newer discord features #36

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Conversation

igalakhov
Copy link
Collaborator

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

Copy link

@dawnofmidnight dawnofmidnight 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.

src/main.rs Outdated Show resolved Hide resolved
src/arcanum.rs Outdated Show resolved Hide resolved
src/arcanum.rs Outdated Show resolved Hide resolved
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.

2 participants