]> git.lizzy.rs Git - furrybot-discord.git/blobdiff - nsfw.js
Implement NSFW
[furrybot-discord.git] / nsfw.js
diff --git a/nsfw.js b/nsfw.js
index 52bb43c64f7cb720aebc2a009779797cbd751963..8e745110f88acc4600c1ad424f232b2c0afb34e1 100644 (file)
--- a/nsfw.js
+++ b/nsfw.js
@@ -1,7 +1,8 @@
 const pseudoRandom = require("pseudo-random")
+const google_images = require("free-google-images")
 const common = require("./common.js")
 
-const asciiGenital = (id, begin, middle, ending) => 
+const asciiGenital = (id, begin, middle, ending) =>
        begin + middle.repeat(2 + Math.floor(pseudoRandom(id).random() * (10 - 2 + 1))) + ending
 
 const asciiDick = id => asciiGenital(id + 1, "8", "=", "D")
@@ -28,32 +29,21 @@ module.exports = {
                                msg.reply(`${asciiBoob(target)}    ← <@!${target}>'s Boobs'`)
                }
        },
+       smellfeet: common.requestCommand("smell another user's feet", "wants to smell your feet", _ => {},
+               (msg, origin) => google_images.searchRandom("feet")
+                       .then(result => msg.channel.send(`<@!${origin}> is smelling <@!${msg.author.id}>'s feet. They are kinda stinky!\n${result.image.url}`))
+       ),
+       blowjob: common.requestCommand("suck another user's dick", "wants to suck your dick", _ => {},
+               (msg, origin) => google_images.searchRandom("blowjob+meme")
+                       .then(result => msg.channel.send(`<@!${origin}> is sucking <@!${msg.author.id}>'s cock. ${asciiDick(msg.author.id)} ˣoˣ \n${result.image.url}`))
+       ),
+       sex: common.requestCommand("have sex with another user", "wants to fuck you", _ => {},
+               (msg, origin) => google_images.searchRandom("sex+meme")
+                       .then(result => msg.channel.send(`<@!${origin}> and <@!${msg.author.id}> are having sex! OwO.\n${result.image.url}`))
+       ),
+       cum: {
+               help: "Ejaculate.",
+               func: msg => google_images.searchRandom("cum+meme")
+                       .then(result => msg.channel.send(`<@!${msg.author.id}> is cumming: ${asciiDick(msg.author.id)}${"~".repeat(1 + Math.floor(Math.random() * 10))}\n${result.image.url}`))
+       },
 }
-
-/*
-
-furrybot.request_command("smellfeet", "smell another player's feet", 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.roleplay)
-end)
-
-furrybot.request_command("blowjob", "suck another player's dick", 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. " .. furrybot.get_ascii_dick(target) .. " ˣoˣ ", furrybot.colors.roleplay)
-end)
-
-furrybot.request_command("sex", "have sex with another player", 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.send(name .. " and " .. target .. " are having sex! OwO", furrybot.colors.roleplay)
-end)
-
-furrybot.commands.cum = {
-       help = "Cum",
-       func = function(name)
-               furrybot.send(name .. " is cumming: " .. furrybot.get_ascii_dick(name) .. C("#FFFFFF") .. furrybot.repeat_string("~", math.random(1, 10)), furrybot.colors.roleplay)
-       end
-}
-*/