RohanRadia / YukiBot

Yuki Bot - The multi-purpose moderation/game aid bot
MIT License
4 stars 3 forks source link

Custom Context for Error Output #13

Open RohanRadia opened 5 years ago

RohanRadia commented 5 years ago

Custom context so that we can have uniform error handling across all cogs. Simply need to do ctx.error(<error message here>) - It then sends a red embed with the heading Error and the text stating the error message. Automatically delete after 5 minutes. Also use logger within error custom context to log within specified channel/file.

RohanJnr commented 5 years ago

lets not delete it after 5min ,let it be.

xKynn commented 5 years ago

can have an arg for delete timer if need be

RohanRadia commented 5 years ago

Maybe a kwarg instead?

xKynn commented 5 years ago

@RohanRadia that's what i meant