diff options
author | Nat Lasseter <user@4574.co.uk> | 2021-01-30 16:21:02 +0000 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2021-01-30 16:21:02 +0000 |
commit | e662264ab6ecbb2b20bfdc8fc634cf24036cb612 (patch) | |
tree | ab71f0bedcb0108f494399f964696d355cc2ec14 | |
parent | cd4047084effe1e572b2da954c9cc6e7ffe4e79d (diff) |
Added reseed
-rwxr-xr-x | iada.rb | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |