dashwav / yin-bot

Discord bot with a focus on moderation. Written in discord.py
https://dashwav.github.io/yin-bot/
MIT License
12 stars 8 forks source link

Join Logs Error on channel deletion #41

Closed dashwav closed 5 years ago

dashwav commented 5 years ago

When a channel is set as a join log channel and is deleted, the channelid stays in the welcome_channels column in the DB, and when the channel can not be found, the send() function fails and throws an exception.

A few things need to be done to prevent this.

1) When a single channel send() fails, it should catch the error and continue sending messages to the rest of the channels

2) Add way to view which channels are currently in welcome_channels ( I had to check the DB to see)

3) Add ability to remove a channel if it is deleted

(Optional) when a channel is deleted, it should be automatically removed to prevent error spamming.

dashwav commented 5 years ago

Fixed by #53