Ejemplo n.º 1
0
        public async Task MainAsync()
        {
            client       = new DiscordSocketClient();
            commands     = new CommandService();
            audioService = new AudioClass();
            tubes2       = new YoutubeClassV2();
            queue        = new AudioQueue();
            services     = new ServiceCollection().AddSingleton(client).AddSingleton(commands).AddSingleton(audioService).AddSingleton(tubes2).AddSingleton(queue).BuildServiceProvider();

            string token = "NDM3NDM5NzAwODM2Mjg2NDY0.Dix_YQ.uXRjqARsjvHRptzIwcttTUAt0Wo";
            await client.LoginAsync(TokenType.Bot, token);

            await client.StartAsync();

            await installCommands();

            client.Log += Log;



            await Task.Delay(-1);
        }
Ejemplo n.º 2
0
 public AudioModule(AudioClass a, YoutubeClassV2 y, AudioQueue q)
 {
     audio = a;
     yt2   = y;
     queue = q;
 }