forked from breakdowns/slam-mirrorbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add mediainfo & shell custom command - Add Set Variable, Delete Variable, and Bot Info Menu (Only for Heroku) - Add Updater for update Bot from upstream (Only for Heroku) - Auto Load Modules - Torrent Search: Add 1337x, piratebay, tgx, yts, eztv, torlock, rarbg support Co-authored-by: Anas <[email protected]> Co-authored-by: Juan <[email protected]> Co-authored-by: Arsalan <[email protected]> Co-authored-by: xd003 <[email protected]> Signed-off-by: breakdowns <[email protected]>
- Loading branch information
1 parent
d2173c9
commit 57d9e5a
Showing
15 changed files
with
434 additions
and
10 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
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
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,18 @@ | ||
'''Methods Directory.''' | ||
# Module folder for modules using Telegram. | ||
# For easier development. | ||
|
||
def __list_all_modules(): | ||
from os.path import dirname, basename, isfile | ||
import glob | ||
# This generates a list of modules in this folder for the * in __main__ to work. | ||
mod_paths = glob.glob(dirname(__file__) + "/*.py") | ||
return [ | ||
basename(f)[:-3] for f in mod_paths if isfile(f) | ||
and f.endswith(".py") | ||
and not f.endswith('__init__.py') | ||
] | ||
|
||
|
||
ALL_MODULES = sorted(__list_all_modules()) | ||
__all__ = ALL_MODULES + ["ALL_MODULES"] |
Oops, something went wrong.