Exemplo n.º 1
0
 public ActionResult Wholast([FromForm] SlackCommandDto slackCommand)
 {
     try
     {
         var result = _slursCommands.WhoLast(slackCommand.ToCommand());
         return(Ok(result.Message));
     }
     catch (Exception ex)
     {
         return(Ok(string.Format(DougMessages.DougError, ex.Message)));
     }
 }
Exemplo n.º 2
0
 public ActionResult GambleChallenge([FromForm] SlackCommandDto slackCommand)
 {
     try
     {
         var result = _casinoCommands.GambleChallenge(slackCommand.ToCommand());
         return(Ok(result.Message));
     }
     catch (Exception ex)
     {
         return(Ok(string.Format(DougMessages.DougError, ex.Message)));
     }
 }
Exemplo n.º 3
0
 public ActionResult Leaderboard([FromForm] SlackCommandDto slackCommand)
 {
     try
     {
         var result = _creditsCommands.Leaderboard(slackCommand.ToCommand());
         return(Ok(result.Message));
     }
     catch (Exception ex)
     {
         return(Ok(string.Format(DougMessages.DougError, ex.Message)));
     }
 }
Exemplo n.º 4
0
 public ActionResult Steal([FromForm]SlackCommandDto slackCommand)
 {
     try
     {
         var result = _combatCommands.Steal(slackCommand.ToCommand());
         return Ok(result.Message);
     }
     catch (Exception ex)
     {
         return Ok(string.Format(DougMessages.DougError, ex.Message));
     }
 }
Exemplo n.º 5
0
 public ActionResult Balance([FromForm] SlackCommandDto slackCommand)
 {
     try
     {
         var result = _statsCommands.Balance(slackCommand.ToCommand());
         return(Ok(result.Message));
     }
     catch (Exception ex)
     {
         return(Ok(string.Format(DougMessages.DougError, ex.Message)));
     }
 }
Exemplo n.º 6
0
 public ActionResult Equip([FromForm] SlackCommandDto slackCommand)
 {
     try
     {
         var result = _inventoryCommands.Equip(slackCommand.ToCommand());
         return(Ok(result.Message));
     }
     catch (Exception ex)
     {
         return(Ok(string.Format(DougMessages.DougError, ex.Message)));
     }
 }
Exemplo n.º 7
0
        public async Task <ActionResult> JoinCoffeeOther([FromForm] SlackCommandDto slackCommand)
        {
            try
            {
                var result = await _coffeeCommands.JoinSomeone(slackCommand.ToCommand());

                return(Ok(result.Message));
            }
            catch (Exception ex)
            {
                return(Ok(string.Format(DougMessages.DougError, ex.Message)));
            }
        }
Exemplo n.º 8
0
        public async Task <ActionResult> CleanSlurs([FromForm] SlackCommandDto slackCommand)
        {
            try
            {
                var result = await _slursCommands.Clean(slackCommand.ToCommand());

                return(Ok(result.Message));
            }
            catch (Exception ex)
            {
                return(Ok(string.Format(DougMessages.DougError, ex.Message)));
            }
        }
Exemplo n.º 9
0
        public async Task <ActionResult> Skip([FromForm] SlackCommandDto slackCommand)
        {
            try
            {
                await _coffeeCommands.Skip(slackCommand.ToCommand());

                return(Ok());
            }
            catch (Exception ex)
            {
                return(Ok(string.Format(DougMessages.DougError, ex.Message)));
            }
        }
Exemplo n.º 10
0
        public async Task <ActionResult> Revolution([FromForm] SlackCommandDto slackCommand)
        {
            var result = await _combatCommands.Revolution(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 11
0
        public async Task <ActionResult> Resolve([FromForm] SlackCommandDto slackCommand)
        {
            var result = await _coffeeCommands.Resolve(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 12
0
 public ActionResult JoinCoffee([FromForm] SlackCommandDto slackCommand)
 {
     _coffeeCommands.JoinCoffee(slackCommand.ToCommand());
     return(Ok());
 }
Exemplo n.º 13
0
        public async Task <ActionResult> JoinCoffeeOther([FromForm] SlackCommandDto slackCommand)
        {
            var result = await _slursCommands.Flame(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 14
0
        public async Task <ActionResult> Shop([FromForm] SlackCommandDto slackCommand)
        {
            var result = await _creditsCommands.Shop(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 15
0
        public async Task <ActionResult> CleanSlurs([FromForm] SlackCommandDto slackCommand)
        {
            var result = await _slursCommands.Clean(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 16
0
        public async Task <ActionResult> Monsters([FromForm] SlackCommandDto slackCommand)
        {
            var result = await _combatCommands.ListMonsters(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 17
0
        public async Task <ActionResult> Equipment([FromForm] SlackCommandDto slackCommand)
        {
            var result = await _statsCommands.Equipment(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 18
0
        public ActionResult Balance([FromForm] SlackCommandDto slackCommand)
        {
            var result = _statsCommands.Balance(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 19
0
        public ActionResult Wholast([FromForm] SlackCommandDto slackCommand)
        {
            var result = _slursCommands.WhoLast(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 20
0
        public ActionResult ViewSlurs([FromForm] SlackCommandDto slackCommand)
        {
            var result = _slursCommands.Slurs(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 21
0
        public ActionResult Skill([FromForm] SlackCommandDto slackCommand)
        {
            var result = _combatCommands.Skill(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 22
0
        public ActionResult Equip([FromForm] SlackCommandDto slackCommand)
        {
            var result = _inventoryCommands.Equip(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 23
0
        public ActionResult Forbes([FromForm] SlackCommandDto slackCommand)
        {
            var result = _creditsCommands.Forbes(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 24
0
        public ActionResult GambleChallenge([FromForm] SlackCommandDto slackCommand)
        {
            var result = _casinoCommands.GambleChallenge(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 25
0
        public async Task <ActionResult> Inventory([FromForm] SlackCommandDto slackCommand)
        {
            var result = await _inventoryCommands.Inventory(slackCommand.ToCommand());

            return(Ok(result.Message));
        }
Exemplo n.º 26
0
        public ActionResult Leaderboard([FromForm] SlackCommandDto slackCommand)
        {
            var result = _creditsCommands.Leaderboard(slackCommand.ToCommand());

            return(Ok(result.Message));
        }