Ejemplo n.º 1
0
        public async Task MainAsync()
        {
            Bot bot = new Bot();

            bot.AddProvider(
                new DiscordBotProvider(
                    new DiscordProviderConfigurations()
            {
                Token      = "",
                ShardCount = 1
            }));

            bot.AddPlugin(
                new CommandsPlugin(bot, new CommandProcessorConfiguration()
            {
                AutoSearchForCommands = true,
                DefaultPrefix         = "!"
            }));

            await bot.StartAsync();

            await Task.Delay(-1);
        }