Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit 9a8f2ee

Browse files
authored
Merge pull request #242 from ocf/oski-bear-patch-1
Texas is frozen
2 parents 020c354 + b4bc19e commit 9a8f2ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ircbot/plugin/fire.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
def register(bot):
88
bot.listen(r'^is california on fire(\?)?$', onfire, require_mention=True, flags=re.IGNORECASE)
9+
bot.listen(r'^is texas frozen(\?)?$', frozen, require_mention=True, flags=re.IGNORECASE)
910

1011

1112
def onfire(bot, msg):
@@ -14,3 +15,7 @@ def onfire(bot, msg):
1415
)
1516
req.raise_for_status()
1617
msg.respond('yes' if 'yes' in req.text.lower() else 'no', ping=False)
18+
19+
20+
def frozen(bot, msg):
21+
msg.respond('yes', ping=False)

0 commit comments

Comments
 (0)