Example #1
0
        public override async Task Execute(Bot bot, DiscordUser user, DiscordMessage message, string[] args)
        {
            Log.Info("Starting SIGWAR...");

            // Rule used
            var rule = new OneTakeRandomStreakCurse();

            new Game(rule);

            Program.game.channel = message.Channel;

            await new SigWarStatus().Execute(bot, user, message, args);

            await message.RespondAsync("Tout va bien dans la salle.");

            Log.Info("SIGWAR started. Register ticks to get it going with >SigWarAdvanceAt HH:MM:SS");
        }
Example #2
0
        public override async Task Execute(Bot bot, DiscordUser user, DiscordMessage message, string[] args)
        {
            Log.Info("Loading SIGWAR...");

            // Rule used
            var rule = new OneTakeRandomStreakCurse();

            Log.Trace("Loaded rule...");

            new Game(rule, true);
            Log.Trace("Created game!");

            Program.game.channel = message.Channel;

            Log.Trace("Loaded, triggering status...");

            await new SigWarStatus().Execute(bot, user, message, args);

            Log.Info("SIGWAR loaded. Register ticks to get it going with >SigWarAdvanceAt HH:MM:SS");
        }