mirror of
https://github.com/nichkara/InfinitumBotty.git
synced 2026-06-11 06:36:24 +02:00
made user managment case insensitive
Added CharactersCountObserver.py which outputs the written characters on command
This commit is contained in:
@@ -19,7 +19,7 @@ class SeenObserver(PrivMsgObserverPrototype):
|
||||
return
|
||||
if not self._is_idented_mod(data, connection):
|
||||
return
|
||||
who = data['messageCaseSensitive'].split(' ')[1]
|
||||
who = data['message'].split(' ')[1]
|
||||
user_provider = UserProvider()
|
||||
activity = user_provider.get_activity(who)
|
||||
output = data['nick']+": Ich habe "+who+" zuletzt am "+str(datetime.datetime.fromtimestamp(activity).strftime("%d.%m.%Y um %H:%M:%S"))+ ' Uhr gesehen'
|
||||
|
||||
Reference in New Issue
Block a user