Removed all local copies of Random rnd in favor of using Program.rnd. Fixed lack of DM command usage. Coverted more responses to use DiscordEmbedBuilder
This commit is contained in:
1 parent
0479d443b8
commit
7cefceb48e
10 files changed
+115
-86
No files matched your search
@@ -23,7 +23,6 @@ namespace StarsiegeBot
|
||||
class Quickchat : BaseCommandModule
|
||||
{
|
||||
private List<Quickchats> Quickchats;
|
||||
private readonly Random rnd = new Random();
|
||||
private bool QuickChatsEnabled;
|
||||
|
||||
public Quickchat()
|
||||
@@ -154,7 +153,7 @@ namespace StarsiegeBot
|
||||
id = Math.Abs(id);
|
||||
if (id == -1 || id > Quickchats.Count)
|
||||
{
|
||||
int idnum = rnd.Next(Quickchats.Count);
|
||||
int idnum = Program.rnd.Next(Quickchats.Count);
|
||||
chat = Quickchats[idnum];
|
||||
msg.Content = $"[{idnum}] " + chat.text;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user