// Print help (available commands and resources) public static async Task PrintHelp(this ISocketMessageChannel Channel) { var text = new StringBuilder() .AppendLine("Here are the available commands:") .AppendLine() .AppendLine("To search for a movie...") .AppendLine("*Type `!rt <name of movie>`") .AppendLine("*Choose one of the options with `!rt choose <number>`") .AppendLine("*To cancel a search `!rt cancel`") .AppendLine() .AppendLine("To view upcoming movies...") .AppendLine("*Type `!rt upcoming`") .AppendLine("*Or type `!rt upcoming movies`") .AppendLine() .AppendLine("To view the top box office...") .AppendLine("*Type `!rt box office`") .AppendLine() .AppendLine("To invite the bot to your server...") .AppendLine("*Type `!rt invite`") .AppendLine() .AppendLine("To view bot information...") .AppendLine("*Type `!rt info` or `!rt stats`") .AppendLine() .AppendLine("To view the source code...") .AppendLine("*Type `!rt github`") .AppendLine() .AppendLine("To join the support server or speak to the developer...") .AppendLine("*Type `!rt discord`") .AppendLine() .AppendLine("To view privacy statement...") .AppendLine("*Type `!rt privacy`") .AppendLine(); await Channel.SendEmbed("Rotten Tomatoes", text.ToString(), false, "Please report issues on my Discord server (!rt discord)").ConfigureAwait(false); }
// DM the invite link to a user public static async Task DMInviteLink(this ISocketMessageChannel Channel, SocketGuildUser user) { await user.SendMessageAsync("https://discord.com/api/oauth2/authorize?client_id=477287091798278145&permissions=67584&scope=bot%20applications.commands"); await Channel.SendEmbed("Rotten Tomatoes", $"The invite link has been DMed to you, {user.Mention}!", false).ConfigureAwait(false); }