parent
c9d2c277d1
commit
c0df23f0b9
4 changed files with 39 additions and 14 deletions
@ -0,0 +1,25 @@ |
||||
import time |
||||
import json |
||||
from bot import Bot, BotClient |
||||
|
||||
class MyBotClient(BotClient): |
||||
def on_poll_idle(self): |
||||
super().on_poll_idle() |
||||
|
||||
def on_poll_wake(self): |
||||
super().on_poll_wake() |
||||
|
||||
def on_poll_status(self, status): |
||||
super().on_poll_status(status) |
||||
|
||||
def on_poll_exception(self, exc): |
||||
super().on_poll_exception(exc) |
||||
|
||||
with open("config.json") as json_file: |
||||
config = json.load(json_file) |
||||
|
||||
bot = Bot(MyBotClient, config) |
||||
bot.start() |
||||
|
||||
while True: |
||||
time.sleep(1) |
Loading…
Reference in new issue