public String getOutput(String input) { Request r = new Request(input, user, aliceBot); Result res = aliceBot.Chat(r); return(res.Output); }
private async Task MessageReceived(SocketMessage message) { if (message.Content == "!ping") { await message.Channel.SendMessageAsync("Pong!"); } Console.WriteLine(message.Content); if (message.Channel.Name.Equals("therapy")) { if (!message.Author.IsBot) { Request r = new Request(message.Content, myUser, myBot); Result res = myBot.Chat(r); Console.WriteLine("Bot: " + res.Output); await message.Channel.SendMessageAsync(res.Output); } } else { Console.WriteLine(message.Channel.Name); } }