viber-replace-bot/load.py
2023-03-03 23:40:08 +02:00

18 lines
336 B
Python

import logging
from flask import Flask
from viberbot import Api
from viberbot.api.bot_configuration import BotConfiguration
from config import config
logger = logging.getLogger(__name__)
app = Flask(__name__)
viber = Api(BotConfiguration(
name=config.bot.name,
avatar=config.bot.avatar,
auth_token=config.bot.token,
))