mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-25 15:24:17 +00:00
Accept any commands starting with /start to start the bot
This commit is contained in:
parent
3caa5ef179
commit
d0faae11fb
1 changed files with 1 additions and 1 deletions
2
core.py
2
core.py
|
@ -53,7 +53,7 @@ def main():
|
||||||
# Skip the update
|
# Skip the update
|
||||||
continue
|
continue
|
||||||
# If the message is a start command...
|
# If the message is a start command...
|
||||||
if isinstance(update.message.text, str) and update.message.text == "/start":
|
if isinstance(update.message.text, str) and update.message.text.startswith("/start"):
|
||||||
# Check if a worker already exists for that chat
|
# Check if a worker already exists for that chat
|
||||||
old_worker = chat_workers.get(update.message.chat.id)
|
old_worker = chat_workers.get(update.message.chat.id)
|
||||||
# If it exists, gracefully stop the worker
|
# If it exists, gracefully stop the worker
|
||||||
|
|
Loading…
Reference in a new issue