am dumb
This commit is contained in:
parent
30a1644d10
commit
314c1847ed
7 changed files with 52 additions and 34 deletions
|
@ -23,13 +23,18 @@ module.exports = class Hug extends Command {
|
|||
if (ctx.msg.mentions.members.first().id === ctx.author.id)
|
||||
return ctx.send(`Don't you want to hug someone other than yourself?`);
|
||||
|
||||
const LineFromUtils = ctx.utils.int.hug[parseInt(Math.random() * ctx.utils.int.hug.length)];
|
||||
let Line = LineFromUtils.replace(/0/g, ctx.utils.format.bold(ctx.author.username)).replace(
|
||||
/1/g,
|
||||
ctx.utils.format.bold(ctx.msg.mentions.members.first().user.username)
|
||||
);
|
||||
|
||||
const Server = await ctx.db.servers.get(ctx.guild.id);
|
||||
let Line;
|
||||
if (Server === null) {
|
||||
const LineFromUtils = ctx.utils.int.hug[parseInt(Math.random() * ctx.utils.int.hug.length)];
|
||||
Line = LineFromUtils.replace(/0/g, ctx.utils.format.bold(ctx.author.username)).replace(
|
||||
/1/g,
|
||||
ctx.utils.format.bold(ctx.msg.mentions.members.first().user.username)
|
||||
);
|
||||
} else {
|
||||
Line = undefined;
|
||||
}
|
||||
|
||||
let Settings;
|
||||
if (Server === null) {
|
||||
Settings = ctx.utils.db.defaults.server;
|
||||
|
@ -43,11 +48,17 @@ module.exports = class Hug extends Command {
|
|||
if (Settings.embeds) {
|
||||
Message = new MessageEmbed()
|
||||
.setColor(ctx.config.color)
|
||||
.setDescription(Line)
|
||||
.setImage(req)
|
||||
.setFooter(`${ctx.client.user.username} - Provided by furry.bot`, ctx.client.user.avatarURL());
|
||||
if (Line) {
|
||||
Message.setDescription(Line);
|
||||
}
|
||||
} else {
|
||||
Message = `${req}`;
|
||||
if (Line) {
|
||||
Message = `${Line}\n${req}`;
|
||||
} else {
|
||||
Message = `${req}`;
|
||||
}
|
||||
}
|
||||
ctx.send(Message);
|
||||
}
|
||||
|
|
|
@ -48,11 +48,17 @@ module.exports = class Kiss extends Command {
|
|||
if (Settings.embeds) {
|
||||
Message = new MessageEmbed()
|
||||
.setColor(ctx.config.color)
|
||||
.setDescription(Line)
|
||||
.setImage(req)
|
||||
.setFooter(`${ctx.client.user.username} - Provided by furry.bot`, ctx.client.user.avatarURL());
|
||||
if (Line) {
|
||||
Message.setDescription(Line);
|
||||
}
|
||||
} else {
|
||||
Message = `${req}`;
|
||||
if (Line) {
|
||||
Message = `${Line}\n${req}`;
|
||||
} else {
|
||||
Message = `${req}`;
|
||||
}
|
||||
}
|
||||
ctx.send(Message);
|
||||
}
|
||||
|
|
|
@ -22,7 +22,8 @@ module.exports = class nKiss extends Command {
|
|||
return ctx.send("Don't kiss me! Kiss someone else!");
|
||||
if (ctx.msg.mentions.members.first().id === ctx.author.id)
|
||||
return ctx.send(`Don't you want to kiss someone other than yourself?`);
|
||||
|
||||
const Server = await ctx.db.servers.get(ctx.guild.id);
|
||||
let Line;
|
||||
if (Server.rp_text) {
|
||||
const LineFromUtils = ctx.utils.int.kiss[parseInt(Math.random() * ctx.utils.int.kiss.length)];
|
||||
Line = LineFromUtils.replace(/0/g, ctx.utils.format.bold(ctx.author.username)).replace(
|
||||
|
@ -33,7 +34,6 @@ module.exports = class nKiss extends Command {
|
|||
Line = undefined;
|
||||
}
|
||||
|
||||
const Server = await ctx.db.servers.get(ctx.guild.id);
|
||||
let Settings;
|
||||
if (Server === null) {
|
||||
Settings = ctx.utils.db.defaults.server;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue