From e662264ab6ecbb2b20bfdc8fc634cf24036cb612 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Sat, 30 Jan 2021 16:21:02 +0000 Subject: Added reseed --- iada.rb | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3