14 lines
322 B
Python
14 lines
322 B
Python
import config
|
|
import handlers
|
|
import tasks
|
|
|
|
from labeler import labeler
|
|
|
|
from vkbottle.bot import Bot
|
|
|
|
|
|
assert handlers
|
|
bot = Bot(config.Config['api_token'], labeler=labeler)
|
|
bot.loop_wrapper.on_startup.append(tasks.startup_task(bot.api))
|
|
bot.loop_wrapper.add_task(tasks.daily_maintenance_task(bot.api))
|
|
bot.run_forever()
|