Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update __init__.py #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@
"""

from pyrogram import Client
from config import API_ID, API_HASH, BOT_TOKEN, SYLTOKEN
from config import API_ID, API_HASH, SESSION
from .utils import Sylviorus
from .db import LocalDb

bot = Client("Sylviorus",
api_id=API_ID,
api_hash=API_HASH,
bot_token=BOT_TOKEN,
plugins=dict(root="{}/plugins".format(__name__)))

bot = Client(
session_name=SESSION,
api_id=API_ID,
api_hash=API_HASH,
plugins=dict(root="{}/plugins".format(__name__))
)

ldb = LocalDb("reasons")
SYL = Sylviorus(SYLTOKEN)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why tho ?
it will mess up the whole system

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why tho ? it will mess up the whole system

Hah