From 31551b0fbad6d27f480b44d78ad47a9533cc1f8d Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Mon, 17 Jul 2017 11:17:59 +0100 Subject: [PATCH] Maybe respond to o7 chat. --- plugin/o7/o7.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 plugin/o7/o7.py diff --git a/plugin/o7/o7.py b/plugin/o7/o7.py new file mode 100644 index 0000000..81dc6dd --- /dev/null +++ b/plugin/o7/o7.py @@ -0,0 +1,14 @@ +import asyncio + +from plugins import PluginCommand +import bot + +class O7(object): + def description(self): + return 'o7' + + async def not_our_message(self, message): + if message.content == 'o7': + await bot.maybe_say(message.channel, 'o7') + return PluginCommand.exclusive + return PluginCommand.ignored -- 2.7.4