]> git.lizzy.rs Git - furrybot.git/commitdiff
Fix rolldice crash
authorElias Fleckenstein <eliasfleckenstein@web.de>
Wed, 10 Mar 2021 14:34:42 +0000 (15:34 +0100)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Wed, 10 Mar 2021 14:34:42 +0000 (15:34 +0100)
bot.lua

diff --git a/bot.lua b/bot.lua
index 8a5f8e15b8e0d0436fd35ea0c1238b3acfcaef60..1e8776df8f5f21c0bfc63648ae28609492ed51e5 100644 (file)
--- a/bot.lua
+++ b/bot.lua
@@ -78,7 +78,7 @@ function furrybot.choose(list, color)
 end
 
 function furrybot.random(min, max, color)
-       return furrybot.colors.random .. math.random(#list) .. color
+       return furrybot.colors.random .. math.random(min, max) .. color
 end
 
 function furrybot.http_request(url, name, callback)