Add tox_botname

This commit is contained in:
Dmitry Cherkassov 2014-12-17 11:17:29 +00:00
parent 81f98edf06
commit f13e678270
1 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ class AV(ToxAV):
sys.stdout.flush()
self.send_video(idx, width, height, data)
bot_toxname = 'SyncBot'
class SyncBot(Tox):
def __init__(self):
@ -71,7 +72,7 @@ class SyncBot(Tox):
self.av = AV(self, 10)
self.connect()
self.set_name('bnwox-sync')
self.set_name(bot_toxname)
self.set_status_message("Send me a message with the word 'invite'")
print('ID: %s' % self.get_address())