aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2021-01-30 16:21:02 +0000
committerNat Lasseter <user@4574.co.uk>2021-01-30 16:21:02 +0000
commite662264ab6ecbb2b20bfdc8fc634cf24036cb612 (patch)
treeab71f0bedcb0108f494399f964696d355cc2ec14
parentcd4047084effe1e572b2da954c9cc6e7ffe4e79d (diff)
Added reseed
-rwxr-xr-xiada.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/iada.rb b/iada.rb
index f8dbba7..409da57 100755
--- a/iada.rb
+++ b/iada.rb
@@ -122,4 +122,12 @@ bot.command(:unitest, description: "Perform a uniformity test for peace of mind.
res
end
+bot.command(:reseed, description: "Reseed the PRNG if you're feeling particularly superstitious about the rolls.") do |event|
+ srand
+
+ res = "#{event.author.display_name} requested the PRNG be reseeded."
+ puts res
+ res
+end
+
bot.run