ToxicBot-Discord / ToxicBot

A discord bot capable of detecting toxic messages sent to a server, delete them and warn the author.
MIT License
12 stars 7 forks source link

Changing the responses given by the bot #19

Closed Sid200026 closed 3 years ago

Sid200026 commented 3 years ago

Currently the bot responds to the user using normal texts. A more elegant approach would be the usage of discord' Embed. Your task will be to convert each of the responses provided by the bot to a discord Embed.

zebralt commented 3 years ago

Hi, I'd like to work on this.

I guess my plan would be to refactor all channel.send calls not yet sending an embed and using a custom function as_embed(text: str) -> Embed imported from a helper module to format them consistently.

Just need to decide which embed format to use across all messages as signature.

Sid200026 commented 3 years ago

The approach sounds good to me. You can go ahead with it.