bot: sample use to copy-paste

This commit is contained in:
klemek
2020-04-26 22:09:46 +02:00
parent dc4e68ad75
commit 27a3ef87c5
3 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -103,7 +103,8 @@ async def on_message(message):
f"You can generate a meme with the syntax\n"
f"```\n"
f"[template] \"text 1\" \"text 2\" ...\n"
f"```"
f"```\n"
f"I also work with DM to keep your server clean of spam.\n"
f"You can find a more detailed help and a list of templates at:\n"
f"<https://github.com/klemek/meme-otron/tree/master/discord>")
return
@@ -138,6 +139,10 @@ async def on_message(message):
response += f"\n- Aliases: `{'`, `'.join(meme.aliases)}`"
if meme.info is not None:
response += f"\n- More info: <{meme.info}>"
response += f"\n- Use:" \
f"\n```{meme.id} \"" + \
"\" \"".join([f"text {i}" for i in range(meme.texts_len)]) + \
"\"```"
elif not direct:
response = f"A meme by {message.author.mention}:"
if mid not in SENT: