mirror of
https://github.com/nichkara/InfinitumBotty.git
synced 2026-06-11 14:41:58 +02:00
added 20 seconds delay to first greeters first greeting
This commit is contained in:
@@ -16,5 +16,7 @@ class TellObserver(PrivMsgObserverPrototype):
|
||||
def update_on_priv_msg(self, data, connection: Connection):
|
||||
if data['message'].find('.tell') != -1 and self._is_idented_mod(data, connection):
|
||||
connection.send_channel(data['messageCaseSensitive'][6:])
|
||||
if data['message'].find('.mtell') != -1 and self._is_idented_mod(data, connection):
|
||||
connection.send_channel('\001ACTION'+data['messageCaseSensitive'][7:]+'\001')
|
||||
def _is_idented_mod(self, data: dict, connection: Connection):
|
||||
return data['nick'] in self._config.mods and connection.is_idented(data['nick'])
|
||||
Reference in New Issue
Block a user