示例#1
0
        private async Task EvaluateResponse(SocketMessage response, string optionYes)
        {
            var message = "";

            if (response.Content.ToLower().Contains(optionYes.ToLower()))
            {
                message = GlobalUserAccounts.DeleteAccountFile(Context.User.Id)
                    ? "Wymaza³em wszystkie Twoje dan... czekaj... a ktoœ Ty?"
                    : "Nie znam Ciê, wiêc nic nie usunê :smile:";
            }
            else
            {
                message = "Huhh... nigdy Ciê nie zapomnê!";
            }

            await Context.Channel.SendMessageAsync(Context.User.Mention + " " + message);
        }
        private async Task EvaluateResponse(SocketMessage response, string optionYes)
        {
            var message = "";

            if (response.Content.ToLower().Contains(optionYes.ToLower()))
            {
                message = GlobalUserAccounts.DeleteAccountFile(Context.User.Id)
                    ? "All your data have been deleted."
                    : "We don't have information about you or couldn't find it.";
            }
            else
            {
                message = "Alright, nevermind then!";
            }

            await Context.Channel.SendMessageAsync(Context.User.Mention + " " + message);
        }