viber-replace-bot/load.py

18 lines
336 B
Python
Raw Normal View History

2023-03-04 00:40:08 +03:00
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,
))