forked from UsergeTeam/Userge-Assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbot.py
26 lines (19 loc) · 720 Bytes
/
bot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright (C) 2020 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge-Assistant > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/Userge-Assistant/blob/master/LICENSE >
#
# All rights reserved.
__all__ = ["bot", "START_TIME"]
import time
from pyrogram import Client
from . import Config, logging
_LOG = logging.getLogger(__name__)
START_TIME = time.time()
bot = Client(":memory:",
api_id=Config.APP_ID,
api_hash=Config.API_HASH,
bot_token=Config.BOT_TOKEN,
plugins={'root': "assistant.plugins"})
_LOG.info("assistant-bot initialized!")