Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/linksplatform/Bot
Browse files Browse the repository at this point in the history
  • Loading branch information
Konard committed Jan 29, 2020
2 parents d11c418 + e3a21d2 commit 368fa62
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions python/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class V(Vk):
def __init__(self):
Vk.__init__(self, token=BotToken, group_id=bot_group_id)
Vk.__init__(self, token=BotToken, group_id=bot_group_id, debug=True)
self.messages_to_delete = {}
self.userbot = UserBot()
self.debug = True
Expand Down Expand Up @@ -238,10 +238,4 @@ def send_message(self, event, message):

if __name__ == '__main__':
vk = V()
print("start listen ...")

@vk.longpoll.on_listen_end
def restart(event):
print("restart ...")
vk.start_listen()
vk.start_listen()

0 comments on commit 368fa62

Please sign in to comment.