SE-Utility-Bot / utility-bot

The repository for the Utility Bot.
https://utility-bot.streamlit.app
1 stars 0 forks source link

Add an opt-out and opt-in feature for pinging you when your line quivers #65

Open Peter-developer01 opened 10 months ago

Peter-developer01 commented 10 months ago

So I've been reviewing my inbox and I see there:

It was fun in the first times. However when you start to see so much "your fish is ready!" items, this is starting to be annoying.


I'm requesting a new command that would allow me to opt-in or opt-out the fish pings.

For example,

You can store the config for each user in the, for example, JSON file. You can of course select any file format you like.
And remember, to avoid the confusion, you store the keys as user IDs, not user names.

PlaceReporter99 commented 10 months ago

Storing the user IDs would be impossible. I’ll store the usernames instead. A text file containing those who opted out should be enough. I’ll have to use os.system to commit the changes while the program is running.

Peter-developer01 commented 10 months ago

Why you can't store the user IDs? Storing usernames would be a bad idea because two users can have same usernames, chat allows it.

PlaceReporter99 commented 10 months ago

OakBot sends messages with the usernames, not the user IDs. It would be impossible to tell whether (for example) it was user with an ID of 1 or user with an ID of 2.

Peter-developer01 commented 10 months ago

Ah, thanks. No better variant to store this then.

Peter-developer01 commented 10 months ago

Also, don't forget to make an command to opt-in the pings, if the user wants.

PlaceReporter99 commented 10 months ago

I am testing an implementation

PlaceReporter99 commented 2 months ago

I’m adding a database to this, the command will be setting fishping false to opt out. You will be opted out by default.