]> git.lizzy.rs Git - furrybot.git/blobdiff - bot.lua
Fix rolldice crash
[furrybot.git] / 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)