Proof of concept for disregarding reacts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user