you-have-been-warned
you-have-been-warned copied to clipboard
Remember warning reasons
Add a way to track the reasons for user warnings.
This allows to later see all reasons why a user has been warned before.
If this feature is required for your use case consider using the Sahnee Bot which supports this: https://sahnee.dev/en/sahnee-bot-en/
Basically, what you have to do:
- Get a database, JSON file or whatever you are planning on using.
- When the warn command is executed, POST the UserID & reason with it.
- Leave the entries in the database.
- When they need to be seen just SELECT them and display them.
I decided against getting a database to store user data since the bot is hosted on a small raspberry pi 1 meter next to me. I don't really want to deal with the privacy implication of storing any user data.
If you just make it clear how the data is stored, and setup a firewall on the Rasberry Pi. It will be fine, do not allow connections that aren't on the same IP as it.
And ensure you do not leak the data yourself.
Feel free to send in a PR with the features if you need them. :)
But since this bot is no longer actively developed by me in my free time (my efforts lie on the Sahnee bot and other products) I am unlikely to put additional time and legal precautions into it.