you-have-been-warned icon indicating copy to clipboard operation
you-have-been-warned copied to clipboard

Remember warning reasons

Open SachsKaylee opened this issue 5 years ago • 5 comments

Add a way to track the reasons for user warnings.

This allows to later see all reasons why a user has been warned before.

SachsKaylee avatar Jun 03 '19 20:06 SachsKaylee

If this feature is required for your use case consider using the Sahnee Bot which supports this: https://sahnee.dev/en/sahnee-bot-en/

SachsKaylee avatar May 16 '20 01:05 SachsKaylee

Basically, what you have to do:

  1. Get a database, JSON file or whatever you are planning on using.
  2. When the warn command is executed, POST the UserID & reason with it.
  3. Leave the entries in the database.
  4. When they need to be seen just SELECT them and display them.

LiamTownsley avatar May 16 '20 02:05 LiamTownsley

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.

SachsKaylee avatar May 16 '20 09:05 SachsKaylee

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.

LiamTownsley avatar May 19 '20 06:05 LiamTownsley

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.

SachsKaylee avatar May 19 '20 10:05 SachsKaylee