Minor fix.
This commit is contained in:
parent
86a0c2bd48
commit
eabb163833
@ -45,15 +45,16 @@ class SyncBot(Tox):
|
|||||||
checked = False
|
checked = False
|
||||||
self.joined = False
|
self.joined = False
|
||||||
|
|
||||||
|
try:
|
||||||
|
self.add_friend(GROUP_BOT, "")
|
||||||
|
except: pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
status = self.isconnected()
|
status = self.isconnected()
|
||||||
if not checked and status:
|
if not checked and status:
|
||||||
print('Connected to DHT.')
|
print('Connected to DHT.')
|
||||||
checked = True
|
checked = True
|
||||||
try:
|
|
||||||
self.add_friend(GROUP_BOT, "")
|
|
||||||
except: pass
|
|
||||||
|
|
||||||
if checked and not status:
|
if checked and not status:
|
||||||
print('Disconnected from DHT.')
|
print('Disconnected from DHT.')
|
||||||
|
Loading…
Reference in New Issue
Block a user