jakethedev/beatbattlebot

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

Opened this issue · 0 comments

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