]> git.lizzy.rs Git - furrybot.git/commitdiff
Add extinct command
authorElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 13 Sep 2021 14:23:28 +0000 (16:23 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 13 Sep 2021 14:23:28 +0000 (16:23 +0200)
random.lua

index c03418dce4a65fa6ce1cbe1223ecf8b9df5c353f..69fc4144f87cab7167cec9112ddbb13194d2b653 100644 (file)
@@ -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