Added (læs mere) to wiki message
This commit is contained in:
@ -216,10 +216,11 @@ async def on_message(message):
|
|||||||
title, content, thumbnail = funcs.findWikiPage(command)
|
title, content, thumbnail = funcs.findWikiPage(command)
|
||||||
if title != "":
|
if title != "":
|
||||||
funcs.logThis("Sending the embedded message")
|
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)
|
embed = discord.Embed(title = title, description = content, colour=0xDEADBF)
|
||||||
if thumbnail != "":
|
if thumbnail != "":
|
||||||
embed.set_thumbnail(url=thumbnail)
|
embed.set_thumbnail(url=thumbnail)
|
||||||
|
|
||||||
await message.channel.send(embed = embed)
|
await message.channel.send(embed = embed)
|
||||||
else:
|
else:
|
||||||
await message.channel.send(content)
|
await message.channel.send(content)
|
||||||
|
Reference in New Issue
Block a user