samuelsogbesan / leetbot

LeetCode Question Bot for Discord.
Apache License 2.0
1 stars 0 forks source link

Notifier 🔊 #22

Open samuelsogbesan opened 3 years ago

samuelsogbesan commented 3 years ago

Component responsible for sending messages back to a channel.

The function should roughly be defined as follows: const notify(channel, message)

where channel is a TextChannel object from the Discord library.

channel has a .send method which sends a message to a channel. You don't have to worry about where the object comes from, but to see an example client.on('message',..) in index.js.

Should resolve true/false depending on whether the notification was a success or failure.

If you encapsulate this in a single file, put this in bot/components/notifier.js.

bailscodesstuff commented 3 years ago

i think i done it

samuelsogbesan commented 3 years ago

@bailslearnsstuff can u link this issue to ur PR by added "closes #22" in the description