andersfylling / jailbot

Discord bot that uses shared data between servers to keep banned people banned on a "international" Guild level.
MIT License
4 stars 2 forks source link

Bans #8

Closed andersfylling closed 6 years ago

andersfylling commented 6 years ago

When a user gets banned, the hook should fire and check if a record in the database exist for the current user ban. If not one should be created. It could be of interest to parse the optional(!) audit log field reason for integrated discord support. This helps if the admins do not want to use commands to ban a person, but simply the old fashioned ban system.

The issue here is to understand which database entry is for the last entry if it already exist.