Skip to content

Commit

Permalink
Remove koyeb support
Browse files Browse the repository at this point in the history
renamer bot is didn't support in koyeb
  • Loading branch information
MrMKN authored Dec 2, 2022
1 parent 08d929e commit ce168a6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions bot.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import logging
import logging.config
from pyrogram import Client
from config import API_ID, API_HASH, BOT_TOKEN, FORCE_SUB, PORT
from aiohttp import web
from plugins.web_support import web_server
from config import API_ID, API_HASH, BOT_TOKEN, FORCE_SUB

logging.config.fileConfig('logging.conf')
logging.getLogger().setLevel(logging.INFO)
Expand Down Expand Up @@ -36,11 +34,7 @@ async def start(self):
except Exception as e:
logging.warning(e)
logging.warning("Make Sure Bot admin in force sub channel")
self.force_channel = None
app = web.AppRunner(await web_server())
await app.setup()
bind_address = "0.0.0.0"
await web.TCPSite(app, bind_address, PORT).start()
self.force_channel = None
logging.info(f"{me.first_name} 𝚂𝚃𝙰𝚁𝚃𝙴𝙳 ⚡️⚡️⚡️")


Expand Down

0 comments on commit ce168a6

Please sign in to comment.