Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Discord;
- using Discord.Commands;
- using Discord.API;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace KazBot
- {
- class MyBot
- {
- DiscordClient discord;
- CommandService commands;
- public MyBot()
- {
- discord = new DiscordClient(x =>
- {
- x.LogLevel = LogSeverity.Info;
- x.LogHandler = Log;
- });
- discord.UsingCommands(x =>
- {
- x.PrefixChar = '~';
- x.AllowMentionPrefix = true;
- });
- commands = discord.GetService<CommandService>();
- commands.CreateCommand("dance")
- .Do(async (e) =>
- {
- await e.Channel.SendFile("Dance/smooch.gif");
- });
- commands.CreateCommand("crafta")
- .Do(async (e) =>
- {
- await e.Channel.SendMessage("TaMereCrafta is IMMORTAL!!!");
- await e.Channel.SendFile("Dance/crafta.png");
- });
- commands.CreateCommand("battle")
- .Do(async (e) =>
- {
- await e.Channel.SendMessage("A Guide to Advanced Battle Strategy");
- await e.Channel.SendFile("Dance/strat.jpg");
- await e.Channel.SendMessage("With Kaz and Stiles");
- });
- commands.CreateCommand("rules")
- .Do(async (e) =>
- {
- await e.Channel.SendMessage("```css [RULES]```");
- await e.Channel.SendMessage("```css Be nice and kind to the other members of the pack!```");
- await e.Channel.SendMessage("```css No discriminatory or derogatory actions! (LGBTQ+, Race, Gender or other)```");
- await e.Channel.SendMessage("```css Be respectful to everyone!```");
- await e.Channel.SendMessage("```css Be mindful of people's triggers and anything that makes other members uncomfortable!```");
- await e.Channel.SendMessage("```css Do not start arguments! If someone is trying to start an argument please report it to a member of staff!```");
- await e.Channel.SendMessage("```css Do not post images that could be triggering, derogatory, discriminatory, degrading or otherwise offensive to others!```");
- await e.Channel.SendMessage("```css [PUNISHMENTS]```");
- await e.Channel.SendMessage("```css Breaking the rules will result in a warning, and staff can choose to mute you with the command ?mute for however long they believe is required.```");
- await e.Channel.SendMessage("```css Any serious infraction of the rules will result in an instant kick. This is decided by the staff.```");
- await e.Channel.SendMessage("```css You may receive up to 3 warnings (Strikes) before you are kicked.```");
- await e.Channel.SendMessage("```css If you receive 3 warnings after already being kicked before, you may be banned.```");
- });
- discord.ExecuteAndWait(async () =>
- {
- await discord.Connect(":P", TokenType.Bot);
- });
- }
- private void Log(object sender, LogMessageEventArgs e)
- {
- Console.WriteLine(e.Message);
- }
- Discord.API.em
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement