Proof of concept for disregarding reacts

This commit is contained in:
2025-11-21 12:45:54 -07:00
parent 47a62f0f9c
commit a72e4daeb2
2 changed files with 12 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import discord
from discord.ext import commands
CONTRASTELLAR = 181187505448681472
VERYBADSTAR_PL = 1439484001751404554
# instance variables
larboard = 0
@@ -43,7 +44,12 @@ async def ping(interaction: discord.Interaction):
@client.event
async def on_reaction_add(react: discord.Reaction, user: discord.User):
print("reaction was added!")
message: discord.Message = react.message
reaction: discord.Reaction = react.emoji
if reaction != VERYBADSTAR_PL:
print(f'disregarding reaction!')
return
return
# --- end commands

View File

@@ -53,3 +53,8 @@ class DBHelper():
def __del__(self):
pass
def num_reacts(self, message_uid: int):
self.__CONN = connect_config(self._config)
cursor = self.__CONN.cursor()
cursor.execute('SELECT ')
return