Skip to content

Commit

Permalink
insignificant formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Udith <[email protected]>
  • Loading branch information
uaudith committed Mar 16, 2020
1 parent 6a314be commit c77cf6d
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Userge/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


if __name__ == "__main__":
userge.run()
userge.run()
2 changes: 1 addition & 1 deletion Userge/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ async def get_all_plugins():

log.info(f"all plugins: {plugins}")

return plugins
return plugins
3 changes: 1 addition & 2 deletions Userge/plugins/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

log = logging.getLogger(__name__)


from pyrogram import Filters, Message


Expand All @@ -16,4 +15,4 @@ async def helpme(_, message: Message):

CMD_HELP.update({
"help": "to know how to use this"
})
})
2 changes: 1 addition & 1 deletion Userge/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .config import Config
from .logger import logging
from .logger import logging
11 changes: 4 additions & 7 deletions Userge/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,20 @@

config_file = "config.env"

if not os.path.isfile(config_file):
log.error(f"{config_file} Not Found!")
quit(1)

load_dotenv(config_file)
if os.path.isfile(config_file):
log.info(f"{config_file} Found and loading ...")
load_dotenv(config_file)

if os.environ.get("_____REMOVE_____THIS_____LINE_____", None):
log.error("Please remove the line mentioned in the first hashtag from the config.env file")
quit(1)


class Config:

API_ID = int(os.environ.get("API_ID", 12345))

API_HASH = os.environ.get("API_HASH", None)

HU_STRING_SESSION = os.environ.get("HU_STRING_SESSION", None)

DB_URI = os.environ.get("DATABASE_URL", None)
DB_URI = os.environ.get("DATABASE_URL", None)
2 changes: 1 addition & 1 deletion Userge/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
level=logging.INFO,
format='[%(asctime)s - %(levelname)s] - %(name)s - %(message)s',
datefmt='%d-%b-%y %H:%M:%S'
)
)
2 changes: 1 addition & 1 deletion genStr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

python3.8 genStrSession.py
python3 genStrSession.py
2 changes: 1 addition & 1 deletion genStrSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ async def genStrSession():


if __name__ == "__main__":
asyncio.run(genStrSession())
asyncio.run(genStrSession())
2 changes: 1 addition & 1 deletion run
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

python3.8 -m Userge
python3 -m Userge

0 comments on commit c77cf6d

Please sign in to comment.