diff options
author | daniel-Jones <daniel@danieljon.es> | 2017-07-20 10:43:30 +0930 |
---|---|---|
committer | daniel-Jones <daniel@danieljon.es> | 2017-07-20 10:43:30 +0930 |
commit | 6b9032f15de17c019356ae64b489a363acaf7693 (patch) | |
tree | c3fd4e7b38cc024b9fffd6b988f871a89d2dba39 | |
parent | 79afb299fb06f59003ba444bdd5f4f977d182d4b (diff) | |
download | slacklog-6b9032f15de17c019356ae64b489a363acaf7693.tar.gz slacklog-6b9032f15de17c019356ae64b489a363acaf7693.zip |
in case i left out something
-rw-r--r-- | main.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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']); |