diff options
Diffstat (limited to 'warmachine/addons/standup.py')
| -rw-r--r-- | warmachine/addons/standup.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/warmachine/addons/standup.py b/warmachine/addons/standup.py new file mode 100644 index 0000000..a21efdd --- /dev/null +++ b/warmachine/addons/standup.py | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | from .base import WarMachinePlugin | ||
| 2 | |||
| 3 | |||
| 4 | class StandUpPlugin(WarMachinePlugin): | ||
| 5 | """ | ||
| 6 | WarMachine stand up plugin. | ||
| 7 | |||
| 8 | Commands: | ||
| 9 | !standup-add <24 hr time to kick off> <SunMTWThFSat> [channel] | ||
| 10 | !standup-remove [channel] | ||
| 11 | """ | ||
| 12 | async def recv_msg(self, connection, message): | ||
| 13 | if not message['message'].startswith('!standup'): | ||
| 14 | return | ||
| 15 | |||
| 16 | self.log.debug('standup recv: {}'.format(message)) | ||
| 17 | |||
| 18 | cmd = message['message'].split(' ')[0] | ||
| 19 | parts = message['message'].split(' ')[1:] | ||
| 20 | |||
| 21 | if cmd == '!standup-add': | ||
| 22 | await connection.say('Scheduling standup for {} on {}'.format( | ||
| 23 | parts[1], parts[2])) | ||
| 24 | |||
| 25 | # await connection.say('{}, {}'.format(cmd, parts), message['channel']) | ||
| 26 | |||
| 27 | async def start_standup(self, connection): | ||
| 28 | pass | ||