msg.reply("Please mention a user other than yourself")
return
}
-
+
if (msg.guild.members.cache.get(id))
return id
}
module.exports.uppercase = str => str.slice(0, 1).toUpperCase() + str.slice(1)
-module.exports.requestCommand = (help, onRequest, onAccept) => new Object({
+module.exports.requestCommand = (help, info, onRequest, onAccept) => new Object({
params: "<player>",
- help: "Request to " + help + " another user",
+ help: "Request to " + help,
func: (msg, [targetPing], {requests}) => {
const target = getPing(msg, targetPing, false)
if (target) {
const err = onRequest(msg, target)
- if (err)
+ if (err) {
msg.reply(err)
- else
+ } else {
+ msg.channel.send(`<@!${target}>: <@!${msg.author.id}> ${info}. Type !accept to accept or !deny to deny.`)
+
requests[target] = {
origin: msg.author.id,
func: onAccept,
}
+ }
}
-
+
}
})
})
module.exports.stripPings = str => str.replace(/@/g, "\@")
-
let marriages = common.storageLoad("marriages") || {}
module.exports = {
- marry: common.requestCommand("marry another user", (msg, target) => {
+ marry: common.requestCommand("marry another user", "is proposing to you", (msg, target) => {
const origin = msg.author.id
-
+
if (marriages[origin])
return `You are already married to <@!${marriages[origin]}>.`
else if (marriages[target])
return `<@!${target}> is already married to <@!${marriages[target]}>.`
- else
- msg.channel.send(`<@!${target}>: <@!${origin}> is proposing to you. Type !accept to accept or !deny to deny.`)
}, (msg, origin) => {
const target = msg.author.id
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")
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
-}
-*/