Exemplo n.º 1
0
 private void manageToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrWhiteSpace(Settings.settings.discord_token))
     {
         MessageBox.Show(null, "It appears you don't have a token setup yet, so let me guide you through how to use this.\n\nTo start off, you need to generate a bot token. This can be done by going to [discordapp.com], hovering over the More option, then clicking Developers. Now on the left side, you should see My Applications, click that, and create a new application. Name it, then click Create Application near the bottom. A new page should come up, and you should click \"Create Bot User\". A token option should appear, so you should click reveal, and paste it into the form.\n\nTo add the bot to the server, use the Auth link generator found on [Discord -> Auth Link Gen]\n\nThe prefix for this bot is >", "Discord Integration", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     using (ManageDiscordSettings s = new ManageDiscordSettings()) s.ShowDialog();
 }
Exemplo n.º 2
0
 public BotBackend(DiscordClient _c, string token, ManageDiscordSettings s)
 {
     c                  = _c;
     this.token         = token;
     c.MessageReceived += C_MessageReceived;
     c.ServerAvailable += C_ServerAvailable;
     c.JoinedServer    += C_JoinedServer;
     c.LeftServer      += C_LeftServer;
     last               = this;
     this.mds           = s;
 }
Exemplo n.º 3
0
 private void manageToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (ManageDiscordSettings s = new ManageDiscordSettings()) s.ShowDialog();
 }
Exemplo n.º 4
0
 public DiscordTokenIn(ManageDiscordSettings _s)
 {
     InitializeComponent();
     s = _s;
 }