Add invite message.

This commit is contained in:
AZ Huang 2013-12-11 23:54:18 +08:00
parent dc2ecc946e
commit 5c906153e9

View file

@ -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()