mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-09-17 16:52:47 +00:00
13 lines
437 B
Python
13 lines
437 B
Python
import discord
|
|
from discord.ext import commands
|
|
from src.embeds import build_info_embed, build_error_embed
|
|
|
|
def setup_commands(bot: discord.Bot):
|
|
@bot.slash_command(description="Informationen über die aktuelle Fahrt")
|
|
async def info(ctx):
|
|
embed = build_info_embed()
|
|
if embed is None:
|
|
await build_error_embed("Noch keine Verbindung gesetzt.")
|
|
return
|
|
await ctx.respond(embed=embed)
|