Skip to content
Extraits de code Groupes Projets
Valider 695f2b74 rédigé par Deurstann's avatar Deurstann
Parcourir les fichiers

added untested show me more xxx feature

parent 9b4e0f44
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!1'Show me more' feature
...@@ -87,13 +87,13 @@ async def on_message(message): ...@@ -87,13 +87,13 @@ async def on_message(message):
return return
lower = message.content.lower() lower = message.content.lower()
if lower == "show me an help" or lower == "show me a help": if lower == "show me an help" or lower == "show me a help":
mess = "Usage : ``show me a xxxx`` or ``show me an xxxx``\nCurrently, I can show :```" mess = "Usage : ``show me a xxxx`` or ``show me an xxxx`` or ``show me more xxxx``\nCurrently, I can show :```"
for entry in subreddits.values(): for entry in subreddits.values():
mess += entry.name + " with a picture from r/" + entry.subName + "\n" mess += entry.name + " with a picture from r/" + entry.subName + "\n"
mess += "```" mess += "```"
await message.channel.send(mess) await message.channel.send(mess)
if "show me a" in lower: if ("show me a" in lower) or ("show me more" in lower):
name = re.search(r"show me an? ([\S]+)", lower) name = re.search(r"show me ((an?)|more) ([\S]+)", lower)
if name == None: if name == None:
return return
else: else:
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter