Add invite message.
This commit is contained in:
parent
dc2ecc946e
commit
5c906153e9
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ class SyncBot(Tox):
|
|||
|
||||
def on_friend_message(self, friendid, message):
|
||||
if message == 'invite':
|
||||
print('Inviting %s' % self.get_name(friendid))
|
||||
self.invite_friend(friendid, self.tox_group_id)
|
||||
|
||||
t = SyncBot()
|
||||
|
|
Loading…
Reference in a new issue