Imply private channel if telling me.
authorCMDR furrycat <elite@furrycat.net>
Fri, 7 Oct 2016 09:08:35 +0000 (10:08 +0100)
committerCMDR furrycat <elite@furrycat.net>
Fri, 7 Oct 2016 09:08:35 +0000 (10:08 +0100)
bot.py

diff --git a/bot.py b/bot.py
index 2fbafb0..86b1f66 100755 (executable)
--- a/bot.py
+++ b/bot.py
@@ -935,6 +935,8 @@ def create_announcement(message, raw):
     elif arg == 'tell':
       if param == 'me':
         create['mention'] = message.author.id
+        if 'channel_id' not in create:
+          create['channel_id'] = 'private'
         ok = True
       else:
         m = re.match(r'<@((?:&?|#)\d+)>', param)