Nos78 / MrData

Discord Bot providing some simple scoring using postgres
GNU General Public License v3.0
3 stars 1 forks source link

User data cannot be deleted #17

Open Nos78 opened 4 years ago

Nos78 commented 4 years ago

We need a way of deleting user data from the database once a user leaves the server. Otherwise the leaderboards become full of entries saying "User 124567834 has left the building".

It might be nice to have their name in the leaderboard, but since the bot does not store these (names are queried automatically using the discord API). We don't want to change this behaviour, otherwise when a user changes their nickname we will be out of date.

A simple !removeuser command will suffice, with privileged permissions so only admins can delete users.