summaryrefslogtreecommitdiff
path: root/bot.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-03-10 15:34:42 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-03-10 15:34:42 +0100
commit781a19734486d3a092b6fb02088acdfbe1b47454 (patch)
tree205a3803ba94b7077364da197c477703807216da /bot.lua
parent5b1e98d6a7faa682bed49426f61875f008b0e00c (diff)
downloadfurrybot-781a19734486d3a092b6fb02088acdfbe1b47454.tar.xz
Fix rolldice crash
Diffstat (limited to 'bot.lua')
-rw-r--r--bot.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot.lua b/bot.lua
index 8a5f8e1..1e8776d 100644
--- 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)