furrybot.ping_message(player, error .. (detail and furrybot.colors.detail .. " '" .. detail .. "'" .. furrybot.colors.error or "") .. ".", furrybot.colors.error)
end
-function furrybot.recieve(rawmsg)
- local message_info = libclamity.parse_chat_message(rawmsg)
-
- if not message_info then
- return
- end
-
- local player, message, discord = message_info.player, message_info.message, message_info.discord
-
+function furrybot.parse_message(player, message, discord)
if message:find("!") == 1 then
local args = message:sub(2, #message):split(" ")
local cmd = table.remove(args, 1)
local func = furrybot.commands[cmd]
if func then
if furrybot.unsafe_commands[cmd] and discord then
- furrybot.error_message(player, "Sorry, you cannot run this command from discord", cmd)
+ furrybot.error_message(player, "Sorry, you cannot run this command from discord: ", cmd)
else
func(player, unpack(args))
end
return furrybot.colors.money .. "$" .. money .. color
end
+function furrybot.get_ascii_dick(name)
+ return minetest.rainbow(furrybot.repeat_string("=", furrybot.strrandom(name, 31242, 2, 10)) .. "D")
+end
+
-- Commands
-- system
furrybot.commands.beat = furrybot.interactive_rpg_command("beats")
furrybot.commands.lick = furrybot.interactive_rpg_command("licks")
+furrybot.commands.smellfeet = furrybot.request_command(function(name, target)
+ furrybot.ping_message(target, name .. " wants to smell your feet. Type !accept to accept or !deny to deny.", furrybot.colors.system)
+end, function(name, target)
+ furrybot.ping_message(name, " you are smelling " .. target .. "'s feet. They are kinda stinky!", furrybot.colors.rpg)
+end)
+
+furrybot.commands.blowjob = furrybot.request_command(function(name, target)
+ furrybot.ping_message(target, name .. " wants to suck your dick. Type !accept to accept or !deny to deny.", furrybot.colors.system)
+end, function(name, target)
+ furrybot.send(name .. " is sucking " .. target .. "'s cock. ˣoˣ IT'S SO HUGE", furrybot.colors.rpg)
+end)
+
furrybot.commands.sex = furrybot.request_command(function(name, target)
furrybot.ping_message(target, name .. " wants to have sex with you. Type !accept to accept or !deny to deny.", furrybot.colors.system)
end, function(name, target)
furrybot.commands.bang = furrybot.commands.sex
furrybot.commands.fuck = furrybot.commands.sex
+furrybot.commands.cum = function(name)
+ furrybot.send(name .. " is cumming: " .. furrybot.get_ascii_dick(name) .. C("#FFFFFF") .. furrybot.repeat_string("~", math.random(1, 10)), furrybot.colors.rpg)
+end
+
furrybot.commands.marry = furrybot.request_command(function(name, target)
if storage:contains(name .. ".partner", target) then
furrybot.error_message(name, "You are already married to", storage:get_string(name .. ".partner"))
return false
elseif storage:contains(target .. ".partner", name) then
- furrybot.error_message(name, target .. " is already married to", storage:get_string(name .. ".partner"))
+ furrybot.error_message(name, target .. " is already married to", storage:get_string(target .. ".partner"))
return false
else
furrybot.ping_message(target, name .. " proposes to you. Type !accept to accept or !deny to deny.", furrybot.colors.system)
end
furrybot.commands.married = furrybot.commands.partner
+furrybot.kill_deathmessages = {
+ "%s walked into fire whilst fighting %s",
+ "%s was struck by lightning whilst fighting %s",
+ "%s was burnt to a crisp whilst fighting %s",
+ "%s tried to swim in lava to escape %s",
+ "%s walked into danger zone due to %s",
+ "%s suffocated in a wall whilst fighting %s",
+ "%s drowned whilst trying to escape %s",
+ "%s starved to death whilst fighting %s",
+ "%s walked into a cactus whilst trying to escape %s",
+ "%s hit the ground too hard whilst trying to escape %s",
+ "%s experienced kinetic energy whilst trying to escape %s",
+ "%s didn't want to live in the same world as %s",
+ "%s died because of %s",
+ "%s was killed by magic whilst trying to escape %s",
+ "%s was killed by %s using magic",
+ "%s was roasted in dragon breath by %s",
+ "%s withered away whilst fighting %s",
+ "%s was shot by a skull from %s",
+ "%s was squashed by a falling anvil whilst fighting %s",
+ "%s was slain by %s",
+ "%s was shot by %s",
+ "%s was fireballed by %s",
+ "%s was killed trying to hurt %s",
+ "%s was blown up by %s",
+ "%s was squashed by %s",
+}
+
+furrybot.deathmessages = {
+ "%s went up in flames",
+ "%s was struck by lightning",
+ "%s burned to death",
+ "%s tried to swim in lava",
+ "%s discovered the floor was lava",
+ "%s suffocated in a wall",
+ "%s drowned",
+ "%s starved to death",
+ "%s was pricked to death",
+ "%s hit the ground too hard",
+ "%s experienced kinetic energy",
+ "%s fell out of the world",
+ "%s died",
+ "%s was killed by magic",
+ "%s was roasted in dragon breath",
+ "%s withered away",
+ "%s was squashed by a falling anvil",
+ "%s blew up",
+ "%s was squished too much",
+ "%s went off with a bang",
+}
+
+function furrybot.commands.kill(name, target)
+ if furrybot.online_or_error(name, target, true) then
+ if name == target then
+ furrybot.send(string.format("%s died due to lack of friends", target), furrybot.colors.rpg)
+ else
+ furrybot.send(string.format(furrybot.kill_deathmessages[math.random(#furrybot.kill_deathmessages)], target, name), furrybot.colors.rpg)
+ end
+ end
+end
+
+function furrybot.commands.die(name)
+ furrybot.send(string.format(furrybot.deathmessages[math.random(#furrybot.deathmessages)], name), furrybot.colors.rpg)
+end
+
-- misc
function furrybot.commands.rolldice(name)
furrybot.ping_message(name, "rolled a dice and got a " .. furrybot.random(1, 6, furrybot.colors.system) .. ".", furrybot.colors.system)
function furrybot.commands.dicksize(name, target)
target = target or name
- local size = furrybot.strrandom(target, 31242, 2, 10)
- local dick = furrybot.repeat_string("=", size) .. "D"
- furrybot.send(dick .. furrybot.colors.system .. " <= " .. furrybot.ping(target, furrybot.colors.system) .. "'s Dick", C("#FF4DE1"))
+ furrybot.send(furrybot.get_ascii_dick(target) .. furrybot.colors.system .. " ← " .. furrybot.ping(target, furrybot.colors.system) .. "'s Dick", C("#FF4DE1"))
end
furrybot.commands.cocksize = furrybot.commands.dicksize
-- fun
+function furrybot.commands.amogus(name)
+ furrybot.ping_message(name, "YOU KINDA SUS MAN", furrybot.colors.fun)
+end
+
function furrybot.commands.verse(name)
furrybot.json_http_request("https://labs.bible.org/api/?type=json&passage=random", name, function(data)
furrybot.send(data.text .. furrybot.colors.info .. "[" .. data.bookname .. " " .. data.chapter .. "," .. data.verse .. "]", furrybot.colors.fun)
if word then
furrybot.json_http_request("https://api.dictionaryapi.dev/api/v1/entries/en_US/" .. word:gsub("computer", "person"), name, function(data)
local meaning = data.meaning
- local selected = meaning.exclamation or meaning.noun or meaning.verb or meaning.adjective or meaning["transitive verb"] or meaning.adverb or meaning["relative adverb"]
+ local selected = meaning.abbreviation or meaning["cardinal number"] or meaning.exclamation or meaning.noun or meaning.verb or meaning.adjective or meaning["transitive verb"] or meaning.adverb or meaning["relative adverb"] or meaning.preposition
if not selected then
print(dump(meaning))
furrybot.error_message(name, "Error in parsing response")