add portrait command
This commit is contained in:
parent
ad8f9ea77a
commit
5c420d5dea
1 changed files with 12 additions and 1 deletions
|
@ -7,7 +7,7 @@ import textwrap
|
||||||
import traceback
|
import traceback
|
||||||
from contextlib import redirect_stdout
|
from contextlib import redirect_stdout
|
||||||
|
|
||||||
from disnake import Guild, Intents, Message
|
from disnake import Embed, Guild, Intents, Message
|
||||||
from disnake.ext import commands
|
from disnake.ext import commands
|
||||||
from disnake.ext.commands import Bot, Paginator
|
from disnake.ext.commands import Bot, Paginator
|
||||||
from dotenv import find_dotenv, load_dotenv
|
from dotenv import find_dotenv, load_dotenv
|
||||||
|
@ -290,6 +290,17 @@ async def prefix(ctx, prefix=None):
|
||||||
await ctx.send(f"Set {ctx.guild.name} prefix to `{prefix}`")
|
await ctx.send(f"Set {ctx.guild.name} prefix to `{prefix}`")
|
||||||
|
|
||||||
|
|
||||||
|
@bot.command()
|
||||||
|
async def portrait(ctx):
|
||||||
|
embed = Embed(
|
||||||
|
title="Nomen's Portrait",
|
||||||
|
description="Made by the fantastic aquaholic! [Source here!](https://pub.mastodon.sleeping.town/@aqua/114356664668145919)",
|
||||||
|
)
|
||||||
|
embed.set_image("https://inx.moe/projects/nomen/nomen.png")
|
||||||
|
|
||||||
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
try:
|
try:
|
||||||
run_db_migrations(DB_FILE)
|
run_db_migrations(DB_FILE)
|
||||||
|
|
Loading…
Add table
Reference in a new issue