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
@@ -22,7 +22,6 @@ namespace StarsiegeBot
|
||||
[Group("functions"), Aliases("func")]
|
||||
class Functions : BaseCommandModule
|
||||
{
|
||||
private readonly Random rnd = new Random();
|
||||
private Dictionary<string, SSFunction> ssFunctions;
|
||||
private bool FunctionsEnabled;
|
||||
|
||||
@@ -94,7 +93,7 @@ namespace StarsiegeBot
|
||||
// set the timestamp to now... why, idk, its not really needed actually.
|
||||
embed.WithTimestamp(DateTime.Now);
|
||||
// add a random color to the left side bar of the embed.
|
||||
embed.WithColor(Program.colours[rnd.Next(0, Program.colours.Length)]);
|
||||
embed.WithColor(Program.colours[Program.rnd.Next(0, Program.colours.Length)]);
|
||||
// Message Description, I dont remember what it is any more, sorry!
|
||||
embed.WithDescription(outItem.description);
|
||||
// iterate over each field item, and add them to the embed.
|
||||
|
||||
Reference in new issue
Block a user