summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2017-07-20 10:43:30 +0930
committerdaniel-Jones <daniel@danieljon.es>2017-07-20 10:43:30 +0930
commit6b9032f15de17c019356ae64b489a363acaf7693 (patch)
treec3fd4e7b38cc024b9fffd6b988f871a89d2dba39
parent79afb299fb06f59003ba444bdd5f4f977d182d4b (diff)
downloadslacklog-6b9032f15de17c019356ae64b489a363acaf7693.tar.gz
slacklog-6b9032f15de17c019356ae64b489a363acaf7693.zip
in case i left out something
-rw-r--r--main.py6
1 files changed, 5 insertions, 1 deletions
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']);