minor event changes
This commit is contained in:
parent
57b42acab5
commit
39acbf9b72
16
swarm.py
16
swarm.py
@ -32,12 +32,12 @@ servers = (
|
||||
)
|
||||
|
||||
ipv6 = True # Set to False if your system does not have an IPv6 address
|
||||
channel = "#nword"
|
||||
key = "$$$"
|
||||
channel = "#superbowl"
|
||||
key = ""
|
||||
|
||||
# Settings
|
||||
admin = ["*rean!*@*"] # Can use wildcards (Must be in nick!user@host format)
|
||||
concurrency = 4 # Number of clones to load per server
|
||||
admin = ["*!*@*drugcar.tel"] # Can use wildcards (Must be in nick!user@host format)
|
||||
concurrency = 3 # Number of clones to load per server
|
||||
id = "dev" # Unique ID so you can tell which bots belong what server
|
||||
|
||||
# Formatting Control Characters / Color Codes
|
||||
@ -109,7 +109,6 @@ class clone(threading.Thread):
|
||||
self.autoop = False
|
||||
self.server = server
|
||||
self.port = 6667
|
||||
self.relay = None
|
||||
self.sock = None
|
||||
self.ssl_status = None
|
||||
threading.Thread.__init__(self)
|
||||
@ -153,7 +152,7 @@ class clone(threading.Thread):
|
||||
|
||||
def event_ctcp(self, nick, target, msg):
|
||||
if target == self.nickname:
|
||||
if msg == 'VERSION':
|
||||
if 'VERSION' in msg:
|
||||
version = random.choice('Wal-Mart IRC Client','mIRC v6.35 Khaled Mardam-Bey','xchat 0.24.1 Linux 2.6.27-8-eeepc i686','rZNC Version 1.0 [02/01/11] - Built from ZNC','thelounge v3.0.0 -- https://thelounge.chat/')
|
||||
self.raw(f'NOTICE {nick} \001VERSION {version}\001')
|
||||
else:
|
||||
@ -189,8 +188,9 @@ class clone(threading.Thread):
|
||||
self.nick(self.nickname)
|
||||
|
||||
def event_notice(self, nick, target, msg):
|
||||
if target == self.nickname:
|
||||
self.sendmsg(channel, '[{0}] {1}{2}{3} {4}'.format(color('NOTICE', purple), color('<', grey), color(nick, yellow), color('>', grey), msg))
|
||||
# if target == self.nickname:
|
||||
# self.sendmsg(channel, '[{0}] {1}{2}{3} {4}'.format(color('NOTICE', purple), color('<', grey), color(nick, yellow), color('>', grey), msg))
|
||||
pass
|
||||
|
||||
def event_message(self, ident, nick, target, msg):
|
||||
if target.lower() in self.relaylist:
|
||||
|
Loading…
Reference in New Issue
Block a user