From 3bc475bf5569fc3c798ca952d08550262238153a Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Mon, 13 Sep 2021 16:23:28 +0200 Subject: [PATCH] Add extinct command --- random.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/random.lua b/random.lua index c03418d..69fc414 100644 --- a/random.lua +++ b/random.lua @@ -47,6 +47,14 @@ function furrybot.commands.uwu() furrybot.send(msg, furrybot.colors.system) end +function furrybot.commands.extinct(name, species) + if species then + furrybot.ping_message(name, species:sub(1, 1):upper() .. species:sub(2, #species) .. (species:sub(#species, #species):lower() == "s" and "" or "s") .. " are " .. (furrybot.strrandom(species, 420, 0, 1) == 0 and "not " or "") .. "extinct." , furrybot.colors.system) + else + furrybot.error_message(name, "You need to specify a species") + end +end + return function(_http, _env, _storage) http, env, storage = _http, _env, _storage end -- 2.44.0