Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
9d5dbb6
1
Parent(s):
087376e
Update bot_class.py
Browse files- Powers/bot_class.py +3 -1
Powers/bot_class.py
CHANGED
@@ -8,7 +8,7 @@ from pyrogram.raw.all import layer
|
|
8 |
from pyrogram.types import BotCommand
|
9 |
|
10 |
from Powers import (API_HASH, API_ID, BOT_TOKEN, LOG_DATETIME, LOGFILE, LOGGER,
|
11 |
-
MESSAGE_DUMP, NO_LOAD, UPTIME, WORKERS, load_cmds)
|
12 |
from Powers.database import MongoDB
|
13 |
from Powers.plugins import all_plugins
|
14 |
from Powers.vars import Config
|
@@ -51,6 +51,8 @@ class Gojo(Client):
|
|
51 |
)
|
52 |
meh = await self.get_me() # Get bot info from pyrogram client
|
53 |
LOGGER.info("Starting bot...")
|
|
|
|
|
54 |
Config.BOT_ID = meh.id
|
55 |
Config.BOT_NAME = meh.first_name
|
56 |
Config.BOT_USERNAME = meh.username
|
|
|
8 |
from pyrogram.types import BotCommand
|
9 |
|
10 |
from Powers import (API_HASH, API_ID, BOT_TOKEN, LOG_DATETIME, LOGFILE, LOGGER,
|
11 |
+
MESSAGE_DUMP, NO_LOAD, UPTIME, WORKERS, load_cmds, OWNER_ID)
|
12 |
from Powers.database import MongoDB
|
13 |
from Powers.plugins import all_plugins
|
14 |
from Powers.vars import Config
|
|
|
51 |
)
|
52 |
meh = await self.get_me() # Get bot info from pyrogram client
|
53 |
LOGGER.info("Starting bot...")
|
54 |
+
owner_user = await self.get_users(OWNER_ID)).username
|
55 |
+
Config.owner_username = owner_user
|
56 |
Config.BOT_ID = meh.id
|
57 |
Config.BOT_NAME = meh.first_name
|
58 |
Config.BOT_USERNAME = meh.username
|