zeusops / operationbot

A bot for handling events on the Zeusops discord server
GNU General Public License v3.0
7 stars 4 forks source link

Ping all signed up players before a mission #52

Open Gehock opened 3 years ago

Gehock commented 3 years ago

The bot could send an automatic reminder for everybody who has signed up, a couple of hours before the mission time for example. There should probably be an option to opt out though

MaxKosi commented 3 years ago

Option#1: People who signed up get pinged by default. This is for every event Option#2: People choose if the want to get pinged for main ops. This is a global option that would count for every event Option#3: (most complex) People who signed up get pinged by default. They can turn this ping off (somehow) There is a reaction for every event, if its checked that person gets pinged for that event

HPApples commented 3 years ago

Could just have a Notify me reaction on events

MaxKosi commented 3 years ago

People who signed up get pinged before mission. They can opt out PERMANENTLY Additional: A Reaction that pings you before mission

HPApples commented 3 years ago

For now I am using this independent bot to DM users who are part of a discord role. Players can use a self-assign role menu to get notifications for the main operations. Some of the code might help for when I get time to implement it into the operation bot.

https://replit.com/@HApples/AthenaNotify#main.py

It is very hacky code done no judge pls :'(

MaxKosi commented 3 years ago

For Implementation: ping users that signed up -> here we can use our roles in the event to opt out permanently -> a sepereate list with everyone who opted out, question is where to store that data the reaction -> another list inside the event with everyone who reacted to it. maybe leave the reaction, which would form a list itself. IMPORTANT: we get one less role to add to the events

where to add the method to ping users? I havent really figured out a class that fits. Currently I would add it to messageFunctions, since it is going to send a message later on

Method that pings every user on that reaction is done so far