From 6b9032f15de17c019356ae64b489a363acaf7693 Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Thu, 20 Jul 2017 10:43:30 +0930 Subject: in case i left out something --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 1a9d530..a323c9d 100644 --- a/main.py +++ b/main.py @@ -128,7 +128,7 @@ def getusername(userid): try: username; except NameError: - username = "not found"; + username = "a-bot"; return username; def checkifentryexists(channel, ts): @@ -158,6 +158,10 @@ def collectbants(): returns nothing args: none + + TODO + convert mentions in messages, fixmessages.py has a working example, make it do mentions > 1 per line too, line example: + "Make sure that the Com night post for AU don't fire off tomorrow if we have no interest in hosting it. <@U1CD9P022> <@U2S719P6Y>" ''' j = json.loads(channeljson.decode('utf-8')); totalchannels = len(j['channels']); -- cgit v1.2.3