Reject non-repeat emojis from processing

This commit is contained in:
Conner Harkness 2025-03-12 13:18:54 -06:00
parent 7f9bb11f8f
commit 9e2be5f5fe

View File

@ -57,6 +57,17 @@ async def on_message_or_reaction(client, obj):
settings = get_settings()
CONFIG_DIR = settings["config_dir"]
ALLOW_REPEAT = settings["allow_repeat"]
SHOW_REPEAT = settings["show_repeat"]
REPEAT_EMOJI = settings["repeat_emoji"]
WAITING_EMOJI = settings["waiting_emoji"]
if rxn is not None:
if rxn.emoji.name != REPEAT_EMOJI:
return
if not ALLOW_REPEAT:
return
chl_topic_parts = []
chl_topic_part_1 = ""
@ -120,6 +131,9 @@ async def on_message_or_reaction(client, obj):
WAITING_EMOJI = settings["waiting_emoji"]
if rxn is not None:
if rxn.emoji.name != REPEAT_EMOJI:
return
if not ALLOW_REPEAT:
return