Make the bot not welcome DarkOK's screenshot thing
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
791e2350b6
commit
1da47dc34e
18
src/main.py
18
src/main.py
|
@ -849,9 +849,9 @@ class MessageParser:
|
|||
if not content[1].startswith("scrot"):
|
||||
chatlog_entry("Joined", content[1], "JOIN")
|
||||
|
||||
if RANDOM.randint(0, 1000) == 420:
|
||||
log(f"Welcoming {content[1]!r}")
|
||||
return (guac_msg("chat", f"Welcome, {content[1]!r}. How are you?"),)
|
||||
if RANDOM.randint(0, 1000) == 420:
|
||||
log(f"Welcoming {content[1]!r}")
|
||||
return (guac_msg("chat", f"Welcome, {content[1]!r}. How are you?"),)
|
||||
|
||||
return cls.type_nop(content)
|
||||
|
||||
|
@ -860,13 +860,13 @@ class MessageParser:
|
|||
if not content[1].startswith("scrot"):
|
||||
chatlog_entry("Left", content[1], "LEAVE")
|
||||
|
||||
if content[1] in AUTH["users"]:
|
||||
log(f"Logging {content[1]!r} out")
|
||||
AUTH["users"].remove(content[1])
|
||||
if content[1] in AUTH["users"]:
|
||||
log(f"Logging {content[1]!r} out")
|
||||
AUTH["users"].remove(content[1])
|
||||
|
||||
if RANDOM.randint(0, 1000) == 69:
|
||||
log(f"Saying goodbye to {content[1]!r}")
|
||||
return (guac_msg("chat", f"Goodbye, {content[1]!r}. Have a nice day"),)
|
||||
if RANDOM.randint(0, 1000) == 69:
|
||||
log(f"Saying goodbye to {content[1]!r}")
|
||||
return (guac_msg("chat", f"Goodbye, {content[1]!r}. Have a nice day"),)
|
||||
|
||||
return cls.type_nop(content)
|
||||
|
||||
|
|
Loading…
Reference in a new issue