Exemplo n.º 1
0
        public async Task Version()
        {
            HeckParameter param = utils.GetHeckParameterByName("VERSION");

            if (param != null)
            {
                string version = param.Param_Value;
                var    rnd     = new Random();
                int    val     = rnd.Next(1, 10);
                switch (val)
                {
                case 1:
                case 3:
                case 9:
                    await ReplyAsync($"Heck you for asking...but I am version " + version + "...");

                    break;

                case 2:
                case 4:
                case 8:
                    await ReplyAsync($"Oh heck yeah I am today years old and version " + version + "!");

                    break;

                default:
                    await ReplyAsync($"You are looking at version " + version + "! Heck me up, fam!");

                    break;
                }
            }
        }
Exemplo n.º 2
0
        public async Task Who()
        {
            HeckParameter param = utils.GetHeckParameterByName("WHO");

            if (param != null)
            {
                await ReplyAsync(param.Param_Value);
            }
        }
Exemplo n.º 3
0
        public async Task RoadMap()
        {
            HeckParameter param = utils.GetHeckParameterByName("ROADMAP");

            if (param != null)
            {
                await ReplyAsync(param.Param_Value);
            }
        }
Exemplo n.º 4
0
        public HeckParameter GetHeckParameterByName(string Name)
        {
            HeckParameter      item  = null;
            HeckParameterModel model = new HeckParameterModel(null);
            DataResponse       resp  = model.GetParamByName(Name);

            if (resp != null)
            {
                item = resp.Item as HeckParameter;
            }
            model.Dispose();
            return(item);
        }