summaryrefslogtreecommitdiff
path: root/random.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-09-13 16:23:28 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-09-13 16:23:28 +0200
commit3bc475bf5569fc3c798ca952d08550262238153a (patch)
tree437b9a14692b33ee4d15b3ca6e64a1d69b9607be /random.lua
parent3f037bf26080729e0e3308d0b58820f9ac466d4f (diff)
downloadfurrybot-3bc475bf5569fc3c798ca952d08550262238153a.tar.xz
Add extinct command
Diffstat (limited to 'random.lua')
-rw-r--r--random.lua8
1 files changed, 8 insertions, 0 deletions
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