Drag commited on
Commit
9739701
·
1 Parent(s): c357854

Update palmchat.py

Browse files
Files changed (1) hide show
  1. Mikobot/plugins/palmchat.py +3 -3
Mikobot/plugins/palmchat.py CHANGED
@@ -9,13 +9,13 @@ import google.generativeai as genai
9
 
10
  @app.on_message(filters.text)
11
  async def handle_message(client, message):
12
- if not message.text[:5].lower() == "flash": # Handles both "flash" and "Flash"
13
  return
14
 
15
  query = " ".join(message.text.split()[1:])
16
 
17
  if not query:
18
- await message.reply("Please provide a query after Flash.")
19
  return
20
 
21
  # Send the "giving results" message first
@@ -45,7 +45,7 @@ app.run()
45
  __help__ = """
46
  ➦ *Write Flash with any sentence it will work as chatbot.*
47
 
48
- *Example*: Flash are you a bot?
49
  """
50
 
51
  __mod_name__ = "CHATBOT"
 
9
 
10
  @app.on_message(filters.text)
11
  async def handle_message(client, message):
12
+ if not message.text.startswith("flash"):
13
  return
14
 
15
  query = " ".join(message.text.split()[1:])
16
 
17
  if not query:
18
+ await message.reply("Please provide a query after flash.")
19
  return
20
 
21
  # Send the "giving results" message first
 
45
  __help__ = """
46
  ➦ *Write Flash with any sentence it will work as chatbot.*
47
 
48
+ *Example*: Flash are you a pro?
49
  """
50
 
51
  __mod_name__ = "CHATBOT"