Discord chat bot to announce projects #590
Reference in New Issue
Block a user
Delete Branch "discord_bot"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #589
This adds support for a Discord bot that announces when interesting things happen on the backend. It's currently set up to notify when someone saves a new project image, as a proxy for "done-ness" to the point where folks might want to take a look and comment on the project. It has some limitations to keep the usage simple - it only sends text, and only to a single channel configured on startup (see
.env.defaults). However, the bot (and lib) could very easily be modified to do more advanced stuff, e.g. responding to user chats from Discord.While I was able to successfully set up a bot and have it talk on a channel, this PR isn't quite complete:
CLOUDINARY_API_SECRETin my env - it prevents me from setting a project image and thus firing the bot message when the project is updated.This looks really promising 🚀 , I'll respond to you properly after work.
I made a PR to this PR haha, https://github.com/smartin015/cadhub/pull/1 (I don't like stomping on other people's branches with my commits)
I think this is ready if you are happy with the changes I made, here's what the messages look like with the image.
Yeah, this looks great! Ready to merge when you are.