Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Philotheephilix committed Sep 9, 2023
2 parents 1a2f01f + ba85bf6 commit 566c7bc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions multi_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

is_weather="0"
sos_active="0"
reels_active="0"
string=" "
cl = Client()
tempdir=os.getcwd()
Expand Down Expand Up @@ -185,22 +184,20 @@ def tell_joke(message):
def greet(message):
bot.reply_to(message,"Hey! Hows it going?")
#Combined Code to handle weather , sos , reels command
@bot.message_handler(commands=["weather","sos","reels"])
@bot.message_handler(commands=["weather","sos"])
def weather(message):
status=str(message.text)
print(status)
global sos_active
global is_weather
global reels_active
if status=="/weather":
is_weather="1"
bot.reply_to(message, "Set City")
elif status=="/sos":
sos_active="1"
bot.reply_to(message,"Enter Country Name")
else:
reels_active="1"
bot.reply_to(message,"Enter reels link")
pass
#Code to handle execution of weather , sos, reels
@bot.message_handler(func=lambda m: True)
def city(message):
Expand Down

0 comments on commit 566c7bc

Please sign in to comment.