mirror of
https://github.com/nichkara/InfinitumBotty.git
synced 2026-06-11 06:36:24 +02:00
less greetings for repeating users
This commit is contained in:
@@ -32,4 +32,4 @@ class Greeter(JoinObserverPrototype):
|
|||||||
if data['channel'] == connection.details.get_channel():
|
if data['channel'] == connection.details.get_channel():
|
||||||
if int(time.time()) - self.names[data['nick']] > 28800:
|
if int(time.time()) - self.names[data['nick']] > 28800:
|
||||||
connection.send_back(self.greeting+" " + data['nick'], data)
|
connection.send_back(self.greeting+" " + data['nick'], data)
|
||||||
self.names[data['nick']] = int(time.time())
|
self.names[data['nick']] = int(time.time())
|
||||||
Reference in New Issue
Block a user