typing starts earlier
This commit is contained in:
@ -211,11 +211,11 @@ async def on_message(message):
|
||||
await message.channel.send(desc)
|
||||
|
||||
elif message.content.lower().startswith("!wiki "):
|
||||
async with message.channel.typing():
|
||||
funcs.logThis(message.author.name+" ran \""+message.content+"\"")
|
||||
command = string.capwords(message.content.lower().replace("!wiki ",""))
|
||||
title, content, thumbnail = funcs.findWikiPage(command)
|
||||
if title != "":
|
||||
async with message.channel.typing():
|
||||
funcs.logThis("Sending the embedded message")
|
||||
content += "\n[Læs mere](https://senkulpa.fandom.com/da/wiki/"+title.replace(" ","_")+")"
|
||||
embed = discord.Embed(title = title, description = content, colour=0xDEADBF)
|
||||
|
Reference in New Issue
Block a user