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

Update palmchat.py

Browse files
Files changed (1) hide show
  1. Mikobot/plugins/palmchat.py +2 -2
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.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 Miko.")
19
  return
20
 
21
  # Send the "giving results" message first
 
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