jakevoytko / crbot

A Discord bot that acts as a call-and-response bot. It reacts to ? commands with the learned response.
MIT License
7 stars 3 forks source link

Prevents unlearn from being used from a private message. Fixes #13 #15

Closed drvan closed 7 years ago

drvan commented 7 years ago

I had to make a few additions outside of the original comment I made - namely, I had to expand the DiscordSession interface to have a Channel function. In order to not break testing, I added a stub function to the in memory discord session, but it currently doesn't return anything useful.

Builds and passes tests, but I haven't tried this in a real Discord channel.

jakevoytko commented 7 years ago

Yaaaaaaaaaaay!

Just need tests, and you'll be good to go. I left a comment outlining how you should pipe the channels through for testing. LMK if you have questions