public async Task StartInventoryStateMachine()
        {
            await Context.Channel.TriggerTypingAsync();

            InventoryAccessStateMachine state = new InventoryAccessStateMachine(Context.User.Id);

            CommandHandlingService.AddToStateMachines(state, Context);
        }
        public async Task PressPlusToStart()
        {
            if (Program.game.PlayerDict.ContainsKey(Context.User.Id))
            {
                await Context.Channel.SendMessageAsync($"A Player Account has already created. If you would like to start over please use {CommandHandlingService.GetGuildPrefix(Context)}resetaccount");

                return;
            }
            PlayerCreationStateMachine state = new PlayerCreationStateMachine(Context.User.Id);

            CommandHandlingService.AddToStateMachines(state, Context);
        }
예제 #3
0
 public async Task TestCombatStarterCommand()
 {
     try
     {
         TestCombatLevel level = new TestCombatLevel(Context, Context.User.Id);
         CommandHandlingService.AddToStateMachines(level, Context);
     }
     catch (Exception ex)
     {
         await ReplyAsync(ex.Message + " " + ex.StackTrace);
     }
 }