Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember warning reasons #2

Open
SachsKaylee opened this issue Jun 3, 2019 · 5 comments
Open

Remember warning reasons #2

SachsKaylee opened this issue Jun 3, 2019 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@SachsKaylee
Copy link
Owner

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 SachsKaylee added enhancement New feature or request help wanted Extra attention is needed labels Jun 3, 2019
@SachsKaylee
Copy link
Owner Author

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

@LiamTownsley
Copy link
Contributor

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.

@SachsKaylee
Copy link
Owner Author

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.

@LiamTownsley
Copy link
Contributor

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.

@SachsKaylee
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants