mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-18 15:52:10 +00:00
Tag: 1.17
Intermediate commits (oldest → newest): - attachment test - fx - Batch fix - work ongoing - cat got more sleep - Batch download - FX - fx - Batch hopefully - glbfx - last fix - Final fixes in radio - Merge branch 'main' of https://github.com/migatu/conjurer into main - Fixes - Happy Fucking Indepence Day Poland!!!
This commit is contained in:
+6
-5
@@ -16,6 +16,7 @@ from constants import (
|
||||
INITIAL_TIME_WAIT,
|
||||
MASTER_TIMEOUT,
|
||||
OPENAICLIENT,
|
||||
WORD_REACTIONS
|
||||
)
|
||||
|
||||
|
||||
@@ -85,13 +86,13 @@ class Events(commands.Cog):
|
||||
await message.reply(DATA["fabryczka"])
|
||||
|
||||
if tdelta > INITIAL_TIME_WAIT:
|
||||
for word in self.word_reactions:
|
||||
for word in WORD_REACTIONS:
|
||||
if re.search(r"\b" + word + r"\b", message.content):
|
||||
tdelta = datetime.now() - self.word_reactions[word][2]
|
||||
tdelta = datetime.now() - WORD_REACTIONS[word][2]
|
||||
tdelta = tdelta.total_seconds()
|
||||
security_clearance = self.word_reactions[word][4]
|
||||
reaction = self.word_reactions[word][3]
|
||||
if tdelta > self.word_reactions[word][1]:
|
||||
security_clearance = WORD_REACTIONS[word][4]
|
||||
reaction = WORD_REACTIONS[word][3]
|
||||
if tdelta > WORD_REACTIONS[word][1]:
|
||||
# TODO: to zrobic reactiony
|
||||
self.logger.info("Ping z procedury reakcji")
|
||||
if reaction:
|
||||
|
||||
Reference in New Issue
Block a user