Fix cards against humanity
This commit is contained in:
@@ -59,14 +59,18 @@ namespace LaDOSE.DiscordBot.Command
|
||||
var q = Questions[rnd.Next(Questions.Count - 1)];
|
||||
|
||||
var s = q.Split('_', StringSplitOptions.RemoveEmptyEntries);
|
||||
if (s.Length == 1)
|
||||
{
|
||||
response += q + " " + Answers[rnd.Next(Answers.Count - 1)];
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < s.Length - 1; i++)
|
||||
{
|
||||
response += s[i] + Answers[rnd.Next(Answers.Count - 1)];
|
||||
}
|
||||
response += s[s.Length-1];
|
||||
|
||||
|
||||
|
||||
response += s[s.Length - 1];
|
||||
}
|
||||
await ctx.RespondAsync(response);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user