From ce999895c804891e49261df33b44df641beae022 Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 1 Jul 2019 17:57:43 +0200 Subject: [PATCH] Add basic help command --- PluralKit.Bot/Commands/HelpCommands.cs | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 PluralKit.Bot/Commands/HelpCommands.cs diff --git a/PluralKit.Bot/Commands/HelpCommands.cs b/PluralKit.Bot/Commands/HelpCommands.cs new file mode 100644 index 00000000..a4aee6b7 --- /dev/null +++ b/PluralKit.Bot/Commands/HelpCommands.cs @@ -0,0 +1,27 @@ +using System.Threading.Tasks; +using Discord; +using Discord.Commands; + +namespace PluralKit.Bot.Commands +{ + [Group("help")] + public class HelpCommands: ModuleBase + { + [Command] + public async Task HelpRoot() + { + await Context.Channel.SendMessageAsync(embed: new EmbedBuilder() + .WithTitle("PluralKit") + .WithDescription("PluralKit is a bot designed for plural communities on Discord. It allows you to register systems, maintain system information, set up message proxying, log switches, and more.") + .AddField("What is this for? What are systems?", "This bot detects messages with certain tags associated with a profile, then replaces that message under a \"pseudo-account\" of that profile using webhooks. This is useful for multiple people sharing one body (aka \"systems\"), people who wish to roleplay as different characters without having several accounts, or anyone else who may want to post messages as a different person from the same account.") + .AddField("Why are people's names saying [BOT] next to them?", "These people are not actually bots, this is just a Discord limitation. Type `pk;help proxy` for an in-depth explanation.") + .AddField("How do I get started?", "To get started using PluralKit, try running the following commands (of course replacing the relevant names with your own):\n**1**. `pk;system new` - Create a system (if you haven't already)\n**2**. `pk;member add John` - Add a new member to your system\n**3**. `pk;member John proxy [text]` - Set up [square brackets] as proxy tags\n**4**. You're done! You can now type [a message in brackets] and it'll be proxied appropriately.\n**5**. Optionally, you may set an avatar from the URL of an image with `pk;member John avatar [link to image]`, or from a file by typing `pk;member John avatar` and sending the message with an attached image.\n\nType `pk;help member` for more information.") + .AddField("Useful tips", $"React with {Emojis.Error} on a proxied message to delete it (only if you sent it!)\nReact with {Emojis.RedQuestion} on a proxied message to look up information about it (like who sent it)\nType **`pk;invite`** to get a link to invite this bot to your own server!") + .AddField("More information", "For a full list of commands, type `pk;commands`.\nFor a more in-depth explanation of message proxying, type `pk;help proxy`.\nIf you're an existing user of Tupperbox, type `pk;import` and attach a Tupperbox export file (from `tul!export`) to import your data from there.") + .AddField("Support server", "We also have a Discord server for support, discussion, suggestions, announcements, etc: https://discord.gg/PczBt78") + .WithFooter("By @Ske#6201 | GitHub: https://github.com/xSke/PluralKit/") + .WithColor(Color.Blue) + .Build()); + } + } +} \ No newline at end of file