Example #1
0
        public async Task KillChild()
        {
            await Context.Channel.SendFileAsync(ImageExtentions.GetImagePath("GasaiYunoCrazy.png"),
                                                @"No no no, killing him would be way too kind. How about some torture? Sounds good, doesn't it?
Maybe the bronze bull? No, still kills him....
I know! The thumbscrew and it's many variations! I'd gladly break all of his bones piece by piece. It's not like he's gonna need his arms or legs anyway.");
        }
Example #2
0
        public async Task DefaultCommand(SocketGuildUser user)
        {
            if (user == null)
            {
                return;
            }
            switch (user.Id)
            {
            case 255453041531158538:
                await ReplyAsync(
                    $"How dare you to order me to kill {user.Nickname ?? user.Username}! \nI should kill YOU for even thinking of something like that!");

                break;

            case 240938068964671500:
                await KillChild();

                break;

            case 286972781273546762:
                await ReplyAsync("Why would I kill myself?");

                break;

            default:
                await Context.Channel.SendFileAsync(ImageExtentions.GetImagePath("GasaiYuno.gif"),
                                                    $"Come here {user.Mention}. We're gonna have some fun...");

                break;
            }
        }
        public async Task <IActionResult> Edit(ProductViewModel model, IFormFile pic)
        {
            ImageExtentions imageHelper = new ImageExtentions(_hostingEnvironment);

            model.ProductDO.ImageUrl     = await imageHelper.ImageUploader(pic, "Cdn\\");;
            model.ProductDO.UpdateUserId = GetLoggedUserId();
            _productBL.Update(CacheKey, model.ProductDO);
            return(RedirectToAction("Index", "Product"));
        }