mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
using CompatBot.Utils;
|
|
using DSharpPlus;
|
|
using DSharpPlus.Entities;
|
|
using DSharpPlus.SlashCommands;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CompatBot.Commands;
|
|
|
|
internal sealed class SlashTest: ApplicationCommandModule
|
|
{
|
|
[SlashCommand("credits", "Author Credit")]
|
|
// TODO [Aliases("about")]
|
|
public async Task About(InteractionContext ctx)
|
|
{
|
|
var hcorion = ctx.Client.GetEmoji(":hcorion:", DiscordEmoji.FromUnicode("🍁"));
|
|
var clienthax = ctx.Client.GetEmoji(":gooseknife:", DiscordEmoji.FromUnicode("🐱"));
|
|
var embed = new DiscordEmbedBuilder
|
|
{
|
|
Title = "RPCS3 Compatibility Bot",
|
|
Url = "https://github.com/RPCS3/discord-bot",
|
|
Color = DiscordColor.Purple,
|
|
}.AddField("Made by",
|
|
"💮 13xforever\n" +
|
|
"🇭🇷 Roberto Anić Banić aka nicba1010\n" +
|
|
$"{clienthax} clienthax\n"
|
|
)
|
|
.AddField("People who ~~broke~~ helped test the bot",
|
|
"🐱 Juhn\n" +
|
|
$"{hcorion} hcorion\n" +
|
|
"🙃 TGE\n" +
|
|
"🍒 Maru\n" +
|
|
"♋ Tourghool");
|
|
await ctx.CreateResponseAsync(InteractionResponseType.ChannelMessageWithSource, new DiscordInteractionResponseBuilder().AddEmbed(embed.Build()));
|
|
}
|
|
|
|
} |