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

Refactor message reply/response operations out of bot.js and into controllers, create appropriate util suite #111

Open
jakethedev opened this issue Feb 6, 2022 · 0 comments
Labels
enhancement Slight upgrade but less than a feature

Comments

@jakethedev
Copy link
Owner

Clear title, allows for a cleaner bot.js and less assumptions about handling the objects in particular ways. Allows easier split out of "reactAndDelete(reaction, msg)" type calls, which could be HUGE QoL improvements

Util ideas

  • replyInline(msg, replyContent)
  • react(msg, reaction)
  • reactAndDelete(reaction, msg)
  • replyPrivately(msg, replyContent)
  • replyPrivatelyAndDelete(msg, replyContent)

Also, just calling function(input, msg, client) and expecting no return is perfectly fine, I don't think everything needs to be a closed loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Slight upgrade but less than a feature
Projects
None yet
Development

No branches or pull requests

1 participant