remove gemini because you people can't behave
This commit is contained in:
parent
ddd98b32ee
commit
67461db7c1
1 changed files with 0 additions and 13 deletions
|
@ -33,19 +33,6 @@ public class VM
|
||||||
this.cvm.UserRenamed += (_, e) => CheckUsername(e.User);
|
this.cvm.UserRenamed += (_, e) => CheckUsername(e.User);
|
||||||
this.cvm.UserJoined += (_, e) => CheckUsername(e);
|
this.cvm.UserJoined += (_, e) => CheckUsername(e);
|
||||||
this.cvm.RegisterCommand("+quote", QuoteCommand);
|
this.cvm.RegisterCommand("+quote", QuoteCommand);
|
||||||
this.cvm.RegisterCommand("+gemini", Gemini);
|
|
||||||
}
|
|
||||||
|
|
||||||
private async void Gemini(string username, string prompt)
|
|
||||||
{
|
|
||||||
var http = new HttpClient();
|
|
||||||
var response = await http.GetStringAsync("https://mail.elijahr.dev/gemini.php?cvm=1&q=" + Uri.EscapeDataString(prompt));
|
|
||||||
var outs = response.Split('\n');
|
|
||||||
foreach (var line in outs)
|
|
||||||
{
|
|
||||||
if (string.IsNullOrEmpty(line)) continue;
|
|
||||||
await cvm.SendXSSChat(WebUtility.HtmlEncode(line));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void QuoteCommand(string username, string[] args)
|
private async void QuoteCommand(string username, string[] args)
|
||||||
|
|
Loading…
Reference in a new issue