Skip to content

Conversation

@nikola-rados
Copy link

Description

  • Add message deletion

Resolves #32

Special Notes

Thanks to the discord.py rewrite this was much simpler than it used to be. There is no need for use to factor our the process since it is already as simple as calling the built in method.

We may want to think about better error handling. As of right now the bot crashes and tells us in the terminal, but a user would have no idea why the bot isn't replying. Removing the original command exasperates this issue since the user will not know what they did wrong. We should have underscore output a message when an error is thrown. Furthermore, we should consider providing better context in the embedded outputs. There is a description parameter, where we could provide some info on the command (just a thought, this would probably get handled in the embed standardization).

Suggested Version Bump

  • Major
  • Minor
  • Patch

Checklist:

  • I have run black .
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have added logging

@nikola-rados nikola-rados added the enhancement New feature or request label Jun 21, 2020
@nikola-rados nikola-rados added this to the Bison milestone Jun 21, 2020
@nikola-rados nikola-rados requested a review from maxUser June 21, 2020 21:47
Copy link
Contributor

@maxUser maxUser left a comment

Choose a reason for hiding this comment

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

Is it possible to turn this on/off? While it looks cleaner for the user, it can be useful to see the command when testing/debugging.

@nikola-rados
Copy link
Author

That’s a good idea, should it be a command line flag maybe?

@nikola-rados
Copy link
Author

@maxUser I thought it would be good to tie the message deletion to log_level. Running the bot in DEBUG mode will leave the commands up. How do you feel about this solution?

@maxUser
Copy link
Contributor

maxUser commented Jun 22, 2020

@maxUser I thought it would be good to tie the message deletion to log_level. Running the bot in DEBUG mode will leave the commands up. How do you feel about this solution?

Perfect, thank you! Merge away.

@nikola-rados nikola-rados merged commit 97e1b67 into master Jun 22, 2020
@maxUser maxUser deleted the i32-swallow-command branch June 23, 2020 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Swallow commands

3 participants