forked from ShivangKakkar/pystark
-
-
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.
- Loading branch information
1 parent
0d4a853
commit 647ec1e
Showing
106 changed files
with
2,677 additions
and
2,292 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
# Only for deploying locally, else delete this file | ||
|
||
|
||
# Mandatory Vars | ||
|
||
API_ID = | ||
API_HASH = | ||
BOT_TOKEN = | ||
|
||
# Optional | ||
|
||
OWNER_ID = | ||
TIMEZONE = Asia/Kolkata # no need to change if you are from India as it is default | ||
|
||
# non-mandatory | ||
SUDO_USERS = |
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,8 +1,5 @@ | ||
# Main Script | ||
from pystark import Stark | ||
|
||
|
||
if __name__ == "__main__": | ||
# Use default_plugins=False if you don't want in-built 'start, help, id and about' command. | ||
# Use plugins = PLUGINS_FOLDER_NAME to have plugins folder with name other than 'plugins'. | ||
# Use set_menu = False to disable auto-update of Bot Menu in telegram. | ||
Stark().activate() |
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 +1 @@ | ||
PyStark | ||
PyStark==1.0.0 |
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,22 +1,37 @@ | ||
# Messages | ||
# Project Configuration | ||
|
||
START = """ | ||
Start Message | ||
""" | ||
START = "You started the bot" # Start Message | ||
|
||
HELP = """ | ||
Commands | ||
HELP = "Only you can help yourself" # Help Message | ||
|
||
/about - About Bot | ||
/help - Help Message | ||
/start - Start Bot | ||
/id - Get ID | ||
""" | ||
ABOUT = "About This Awesome Bot \nDeveloped using @PyStark" # About Message | ||
|
||
ABOUT = """ | ||
About This Awesome Bot | ||
PLUGINS = "plugins" or ["plugins"] # Path to plugins directory or List of multiple paths | ||
|
||
Developer - @StarkProgrammer | ||
ADDONS = [ # The addons (default plugins) you want to load from pystark | ||
|
||
By @StarkBots | ||
""" | ||
"start", # /start command which replies with text in START variable. Only private chats | ||
"help", # /help command which replies with text in HELP variable. Only private chats | ||
"about", # /about command which replies with text in ABOUT variable. Only private chats | ||
"id", # /id command which replies with user id and chat id. | ||
# "sudo", # Use /sudo to show all sudo commands. | ||
# "json", # /json command to get Message JSON and /jsondoc command to get Message JSON as document. Only owner can use them. | ||
# "must_join", # Put usernames or chat ids where users must join in MUST_JOIN variable. | ||
# "bans", # Use /ban to ban people from using the bot. /unban to unban. /banlist to see banned users. Needs postgresql database with table "bans" | ||
# "broadcast", # Use /broadcast to broadcast a message to users. Needs postgresql database with table "users" | ||
# "stats", # Use /stats to get current user stats. Needs postgresql database with table "users" | ||
|
||
] | ||
|
||
MUST_JOIN = [] # List of usernames or chat ids where users must join | ||
|
||
SET_BOT_MENU = True # Set bot menu using command descriptions | ||
|
||
CMD_PREFIXES = ["/"] # Prefixes for commands. For multiple prefixes, specify multiple together like ["&", "*", "/", "."] | ||
|
||
TIMEZONE = "Asia/Kolkata" # Specify timezone for logging. Defaults to India (Asia/Kolkata) | ||
|
||
DATABASE_TABLES = [ # Use them only if postgresql database is used | ||
"users", # Needed for "stats" addon and "broadcast" addon | ||
"bans", # Needed for "bans" addon | ||
] |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
__pycache__/ | ||
test.py | ||
.env | ||
.gitattributes | ||
.gitattributes |
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,4 +1,5 @@ | ||
from pystark import Stark | ||
|
||
|
||
if __name__ == "__main__": | ||
Stark().activate() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 +1 @@ | ||
PyStark | ||
PyStark==1.0.0 |
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,35 +1,11 @@ | ||
START = """ | ||
Hey {user} | ||
START = "do this" | ||
|
||
Welcome to {bot} | ||
HELP = "Help Message" | ||
|
||
I can | ||
Use below buttons to learn more. | ||
ABOUT = "do this" | ||
|
||
By @StarkBots | ||
""" | ||
REPO = "pystark" | ||
|
||
HELP = """ | ||
✨ **Available Commands** ✨ | ||
DATABASE_TABLES = ["users"] | ||
|
||
/about - About The Bot | ||
/help - This Message | ||
/start - Start the Bot | ||
/id - Get your ID | ||
""" | ||
|
||
ABOUT = """ | ||
**About This Bot** | ||
A telegram bot to | ||
Source Code : [Click Here](https://github.com/StarkBotsIndustries/) | ||
Framework : [Pyrogram](docs.pyrogram.org) | ||
Language : [Python](www.python.org) | ||
Developer : @StarkProgrammer | ||
""" | ||
|
||
BUTTONS = True | ||
STARKBOTS = True |
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 @@ | ||
pystark.codes |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.