Reject non-repeat emojis from processing
This commit is contained in:
parent
7f9bb11f8f
commit
9e2be5f5fe
@ -57,6 +57,17 @@ async def on_message_or_reaction(client, obj):
|
|||||||
settings = get_settings()
|
settings = get_settings()
|
||||||
|
|
||||||
CONFIG_DIR = settings["config_dir"]
|
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_parts = []
|
||||||
chl_topic_part_1 = ""
|
chl_topic_part_1 = ""
|
||||||
@ -120,6 +131,9 @@ async def on_message_or_reaction(client, obj):
|
|||||||
WAITING_EMOJI = settings["waiting_emoji"]
|
WAITING_EMOJI = settings["waiting_emoji"]
|
||||||
|
|
||||||
if rxn is not None:
|
if rxn is not None:
|
||||||
|
if rxn.emoji.name != REPEAT_EMOJI:
|
||||||
|
return
|
||||||
|
|
||||||
if not ALLOW_REPEAT:
|
if not ALLOW_REPEAT:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user