make syncbot reponse to irc message ^syncbot and return it's address
This commit is contained in:
parent
da91a1ad18
commit
dc94d1607c
1 changed files with 6 additions and 1 deletions
|
@ -81,7 +81,12 @@ class SyncBot(Tox):
|
|||
if rx:
|
||||
print('IRC> %s: %s' % rx.groups())
|
||||
msg = '%s> %s' % rx.groups()
|
||||
self.send_group_msg(msg)
|
||||
|
||||
if rx.group(2) == '^syncbot':
|
||||
self.irc.send('PRIVMSG %s :%s\r\n' %
|
||||
(CHANNEL, self.get_address()))
|
||||
else:
|
||||
self.send_group_msg(msg)
|
||||
|
||||
l = line.rstrip().split()
|
||||
if l[0] == "PING":
|
||||
|
|
Loading…
Reference in a new issue