This repository has been archived by the owner on Jun 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Load plugins from multiple directories. Instead of passing a ‘str’ to ‘activate()’ function, pass a list. - Allow passing other keyword arguments while creating bot client. - Override the in-built/default plugins automatically as they are loaded later now. - Added optional argument [‘-v’, ‘–version’] to see currently installed version. - Removed optional argument [‘-h’, ‘–help’] as passing no argument does the same thing. - Made unnecessary arguments private. - Other Improvements and BugFixes. Took 52 seconds
- Loading branch information
1 parent
b61be19
commit 622b8c4
Showing
5 changed files
with
126 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
pyrogram | ||
pyromod~=1.5 | ||
# Telegram | ||
pyrogram~=1.3.6 | ||
TgCrypto~=1.2.3 | ||
|
||
# Environment | ||
python-dotenv~=0.19.2 | ||
pytz | ||
|
||
# Timezone | ||
pytz~=2021.3 | ||
|
||
# Extend | ||
pyromod~=1.5 | ||
|
||
# Databases | ||
redis~=4.1.1 | ||
redis~=4.1.2 | ||
SQLAlchemy~=1.4.31 | ||
TgCrypto | ||
TelegramDB==0.1.0 | ||
psycopg2 | ||
TelegramDB==0.2.0 | ||
tinydb~=4.6.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
@echo off | ||
TITLE PyStark Batch Script File | ||
|
||
@REM HELP | ||
if "%1" == "help" set true=1 | ||
if "%1" == "" set true=1 | ||
if defined true ( | ||
echo Usage: run [[delete^|docs^|test^|main]] [open] | ||
echo. | ||
echo 'test' - upload to test-pypi | ||
echo 'main' - upload to pypi | ||
echo 'docs' - only update docs | ||
echo 'delete' - only delete folders | ||
exit /b 0 | ||
) | ||
|
||
@REM DELETE | ||
echo [Deleting Unnecessary Folders] | ||
set folder='dist' | ||
rmdir dist /q/s && ( | ||
echo Deleted %folder% | ||
) || ( | ||
echo Cannot found %folder% | ||
) | ||
set folder2='PyStark.egg-info' | ||
rmdir PyStark.egg-info /q/s && ( | ||
echo Deleted %folder2% | ||
) || ( | ||
echo Cannot found %folder2% | ||
) | ||
set folder3='docs/_build' | ||
rmdir "docs/_build" /q/s && ( | ||
echo Deleted %folder3% | ||
) || ( | ||
echo Cannot found %folder3% | ||
) | ||
if "%1" == "delete" exit /b 0 | ||
echo. | ||
|
||
@REM DOCS | ||
echo [Generating Docs] | ||
call docs/make.bat html | ||
if "%2" == "open" start docs/_build/html/index.html | ||
if "%1" == "docs" exit /b 0 | ||
echo. | ||
|
||
@REM DIST | ||
echo [Creating Distribution Files] | ||
python setup.py sdist | ||
if "%1" == "dist" exit /b 0 | ||
echo. | ||
|
||
@REM TEST/MAIN | ||
|
||
if "%1" == "test" goto :test | ||
if "%1" == "main" goto :main | ||
|
||
:test | ||
echo [Upload to TestPyPI] | ||
twine upload --repository-url https://test.pypi.org/legacy/ dist/* | ||
echo. | ||
echo [All Done] | ||
exit /b 0 | ||
|
||
:main | ||
echo [Upload to PyPI] | ||
twine upload dist/* | ||
echo. | ||
echo [All Done] | ||
exit /b 0 | ||
|
||
@REM To-Do : Create command-line tool using Python instead [*python developer lol*] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters