Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Discord.Commands;
- using System;
- using Discord.WebSocket;
- using Discord;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- namespace MEE6_cheatbot
- {
- class Program
- {
- public static async Task SendMessage()
- {
- Thread.Sleep(20);
- await chnl.SendMessageAsync("Flex");
- }
- static IMessageChannel chnl;
- //my token Mjg3NjQyNjc1ODkxNjY2OTQ0.DuRHZg.LURsWFOttc_GY6pp7encBAoPd_k
- static void Main(string[] args)
- {
- DiscordSocketClient _client = new DiscordSocketClient();
- _client.LoginAsync(TokenType.Webhook, "Mjg3NjQyNjc1ODkxNjY2OTQ0.DuRHZg.LURsWFOttc_GY6pp7encBAoPd_k");
- chnl = _client.GetChannel(559449643348656128) as IMessageChannel;
- Console.WriteLine("How many minutes should the bot run?");
- int anz_mins = int.Parse(Console.ReadLine());
- for (int i = 0; i < anz_mins; i++)
- {
- SendMessage();
- Console.WriteLine("Messages wrote: " + (i + 1));
- Console.WriteLine("Messages left to be written: " + (anz_mins - i - 1));
- Thread.Sleep(1000);
- }
- Console.ReadKey(true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement