Dorukyum / Bond

A unique Discord bot for easy server organization and moderation
https://discord.gg/8JsMVhBP4W
GNU General Public License v3.0
41 stars 30 forks source link

Add server logs #24

Closed ephemeral8997 closed 2 years ago

ephemeral8997 commented 2 years ago

This pr will add most audit logs events, It's still under working and testing for now.

Dorukyum commented 2 years ago

These look good at first glance but we have to implement guild checks on these and maybe add an extra "server_log" channel id field besides the already existing "mod_log". Related to #18.

I was also planning to move this type of logs to another cog to be able to unload/manage them seperately. This causes some issues because some log methods are used in this cog too so maybe the methods could be added to the Bot or the Context.

Dorukyum commented 2 years ago

Update: mod logs have been moved to cogs/modlogs.py Not sure if these should also be there or a new cog should be created for them.

ephemeral8997 commented 2 years ago

I should move the modlogs to cogs/modlogs.py firstly

ephemeral8997 commented 2 years ago

I've moved the mod logs to cogs/modlogs.py, furthermore, server_log coroutine has been aded to handle most mod log events, and guild checks have been added too.

ephemeral8997 commented 2 years ago

There is more mod log events that should be added, but some are not useful, I'll add more soon