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,6 +81,11 @@ class SyncBot(Tox):
|
|||
if rx:
|
||||
print('IRC> %s: %s' % rx.groups())
|
||||
msg = '%s> %s' % rx.groups()
|
||||
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue