You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SlashCommand("ping","Checks if the bot is alive")]
25
+
publicasyncTaskPingCommand(InteractionContextctx)
26
+
{
27
+
if(ctx.Guild==null)
28
+
awaitctx.CreateResponseAsync("I am alive, but I sould be used only in guilds.",true);
29
+
else
30
+
awaitGeneratePong(ctx);
31
+
}
32
+
33
+
readonlystring[,]answers={
34
+
/* Good */{"I am alive!","Pong","Ack","I am here","I am here $$$","I am here @@@","Pong, $$$"},
35
+
/* Again? */{"Again, I am alive","Again, Pong","Another Ack","I told you, I am here","Yes, I am here $$$","@@@, I told you I am here","Pong, $$$. You don't get it?"},
36
+
/* Testing? */{"Are you testing something?","Are you doing some debug?","Are you testing something, $$$?","Are you doing some debug, @@@?","Yeah, I am here.",
37
+
"There is something wrong?","Do you really miss me or is this a joke?"},
38
+
/* Light annoyed */{"This is no more funny","Yeah, @@@, I am a bot","I am contractually obliged to answer. But I do not like it","I will start pinging you when you are asleep, @@@","Look guys! $$$ has nothing better to do than pinging me!",
39
+
"I am alive, but I am also annoyed","ƃuoԀ"},
40
+
/* Menacing */{"Stop it.","I will probably write your name in my black list","Why do you insist?","Find another bot to harass","<the bot is not working>","Request time out.","You are consuming your keyboard"},
41
+
/* Punishment */{"I am going to **_ignore_** you","@@@ you are a bad person. And you will be **_ignored_**","I am not answering **_anymore_** to you","$$$ account number is 555-343-1254. Go steal his money","You are annoying me. I am going to **_ignore_** you.","Enough is enough","Goodbye"}
42
+
};
43
+
44
+
45
+
asyncTaskGeneratePong(InteractionContextctx)
46
+
{
47
+
Utils.LogUserCommand(ctx);
48
+
try
49
+
{
50
+
51
+
// Check if we have to initiialize our history of pings
0 commit comments