forked from Supositware/Haha-Yes
Can now mention user too
This commit is contained in:
parent
c8f0fd467e
commit
fd7bead5aa
7 changed files with 107 additions and 37 deletions
|
@ -13,18 +13,31 @@ module.exports = class fetishCommand extends Command {
|
||||||
group: 'images',
|
group: 'images',
|
||||||
memberName: 'fetish',
|
memberName: 'fetish',
|
||||||
description: `My fetish`,
|
description: `My fetish`,
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
key: 'user',
|
||||||
|
prompt: 'What do you want me to say',
|
||||||
|
type: 'user',
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message) {
|
async run(message, { user }) {
|
||||||
|
// Check if user is blacklisted
|
||||||
if(blacklist[message.author.id])
|
if(blacklist[message.author.id])
|
||||||
return message.channel.send("You are blacklisted")
|
return message.channel.send("You are blacklisted")
|
||||||
|
|
||||||
let Attachment = (message.attachments).array();
|
let Attachment = (message.attachments).array();
|
||||||
let image = null
|
let image = null
|
||||||
if (!Attachment[0])
|
|
||||||
image = message.author.displayAvatarURL
|
if (!Attachment[0] && !user)
|
||||||
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
|
image = message.author.displayAvatarURL;
|
||||||
return message.say('Gif dosent work, sorry')
|
else if (!Attachment[0])
|
||||||
|
image = user.displayAvatarURL;
|
||||||
|
else if(Attachment[0].url.endsWith('gif'))
|
||||||
|
return message.say('Gif dosent work, sorry');
|
||||||
else
|
else
|
||||||
image = Attachment[0].url
|
image = Attachment[0].url
|
||||||
|
|
||||||
|
|
|
@ -13,18 +13,29 @@ module.exports = class godCommand extends Command {
|
||||||
group: 'images',
|
group: 'images',
|
||||||
memberName: 'god',
|
memberName: 'god',
|
||||||
description: `Retweet if you aren't afraid to have a picture of god on your timeline`,
|
description: `Retweet if you aren't afraid to have a picture of god on your timeline`,
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
key: 'user',
|
||||||
|
prompt: 'What do you want me to say',
|
||||||
|
type: 'user',
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message) {
|
async run(message, { user }) {
|
||||||
if(blacklist[message.author.id])
|
if(blacklist[message.author.id])
|
||||||
return message.channel.send("You are blacklisted")
|
return message.channel.send("You are blacklisted")
|
||||||
let Attachment = (message.attachments).array();
|
let Attachment = (message.attachments).array();
|
||||||
let image = null
|
let image = null
|
||||||
if (!Attachment[0])
|
|
||||||
image = message.author.displayAvatarURL
|
if (!Attachment[0] && !user)
|
||||||
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
|
image = message.author.displayAvatarURL;
|
||||||
return message.say('Gif dosent work, sorry')
|
else if (!Attachment[0])
|
||||||
|
image = user.displayAvatarURL;
|
||||||
|
else if(Attachment[0].url.endsWith('gif'))
|
||||||
|
return message.say('Gif dosent work, sorry');
|
||||||
else
|
else
|
||||||
image = Attachment[0].url
|
image = Attachment[0].url
|
||||||
|
|
||||||
|
|
|
@ -13,18 +13,28 @@ module.exports = class humanCommand extends Command {
|
||||||
group: 'images',
|
group: 'images',
|
||||||
memberName: 'human',
|
memberName: 'human',
|
||||||
description: `HUMAN ?! YOU DARE CALL THAT THING HUMAN?!?!`,
|
description: `HUMAN ?! YOU DARE CALL THAT THING HUMAN?!?!`,
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
key: 'user',
|
||||||
|
prompt: 'What do you want me to say',
|
||||||
|
type: 'user',
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message) {
|
async run(message, { user }) {
|
||||||
if(blacklist[message.author.id])
|
if(blacklist[message.author.id])
|
||||||
return message.channel.send("You are blacklisted")
|
return message.channel.send("You are blacklisted")
|
||||||
let Attachment = (message.attachments).array();
|
let Attachment = (message.attachments).array();
|
||||||
let image = null
|
let image = null
|
||||||
if (!Attachment[0])
|
if (!Attachment[0] && !user)
|
||||||
image = message.author.displayAvatarURL
|
image = message.author.displayAvatarURL;
|
||||||
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
|
else if (!Attachment[0])
|
||||||
return message.say('Gif dosent work, sorry')
|
image = user.displayAvatarURL;
|
||||||
|
else if(Attachment[0].url.endsWith('gif'))
|
||||||
|
return message.say('Gif dosent work, sorry');
|
||||||
else
|
else
|
||||||
image = Attachment[0].url
|
image = Attachment[0].url
|
||||||
|
|
||||||
|
|
|
@ -20,20 +20,28 @@ module.exports = class idubbbzCommand extends Command {
|
||||||
prompt: 'What do you the paper to say?',
|
prompt: 'What do you the paper to say?',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: 'Nigger Faggot'
|
default: 'Nigger Faggot'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'user',
|
||||||
|
prompt: 'What do you want me to say',
|
||||||
|
type: 'user',
|
||||||
|
default: ''
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message, { text }) {
|
async run(message, { text, user }) {
|
||||||
if(blacklist[message.author.id])
|
if(blacklist[message.author.id])
|
||||||
return message.channel.send("You are blacklisted")
|
return message.channel.send("You are blacklisted")
|
||||||
let Attachment = (message.attachments).array();
|
let Attachment = (message.attachments).array();
|
||||||
let image = null
|
let image = null
|
||||||
if (!Attachment[0])
|
if (!Attachment[0] && !user)
|
||||||
image = message.author.displayAvatarURL
|
image = message.author.displayAvatarURL;
|
||||||
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
|
else if (!Attachment[0])
|
||||||
return message.say('Gif dosent work, sorry')
|
image = user.displayAvatarURL;
|
||||||
|
else if(Attachment[0].url.endsWith('gif'))
|
||||||
|
return message.say('Gif dosent work, sorry');
|
||||||
else
|
else
|
||||||
image = Attachment[0].url
|
image = Attachment[0].url
|
||||||
|
|
||||||
|
|
|
@ -20,20 +20,28 @@ module.exports = class idubbbzpaintCommand extends Command {
|
||||||
prompt: 'What do you the paper to say?',
|
prompt: 'What do you the paper to say?',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: 'Perfection'
|
default: 'Perfection'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'user',
|
||||||
|
prompt: 'What do you want me to say',
|
||||||
|
type: 'user',
|
||||||
|
default: ''
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message, { text }) {
|
async run(message, { text, user }) {
|
||||||
if(blacklist[message.author.id])
|
if(blacklist[message.author.id])
|
||||||
return message.channel.send("You are blacklisted")
|
return message.channel.send("You are blacklisted")
|
||||||
let Attachment = (message.attachments).array();
|
let Attachment = (message.attachments).array();
|
||||||
let image = null
|
let image = null
|
||||||
if (!Attachment[0])
|
if (!Attachment[0] && !user)
|
||||||
image = message.author.displayAvatarURL
|
image = message.author.displayAvatarURL;
|
||||||
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
|
else if (!Attachment[0])
|
||||||
return message.say('Gif dosent work, sorry')
|
image = user.displayAvatarURL;
|
||||||
|
else if(Attachment[0].url.endsWith('gif'))
|
||||||
|
return message.say('Gif dosent work, sorry');
|
||||||
else
|
else
|
||||||
image = Attachment[0].url
|
image = Attachment[0].url
|
||||||
|
|
||||||
|
|
|
@ -13,18 +13,28 @@ module.exports = class likeCommand extends Command {
|
||||||
group: 'images',
|
group: 'images',
|
||||||
memberName: 'like',
|
memberName: 'like',
|
||||||
description: `What the hell is this and why did my grandsone like it`,
|
description: `What the hell is this and why did my grandsone like it`,
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
key: 'user',
|
||||||
|
prompt: 'What do you want me to say',
|
||||||
|
type: 'user',
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message) {
|
async run(message, { user }) {
|
||||||
if(blacklist[message.author.id])
|
if(blacklist[message.author.id])
|
||||||
return message.channel.send("You are blacklisted")
|
return message.channel.send("You are blacklisted")
|
||||||
let Attachment = (message.attachments).array();
|
let Attachment = (message.attachments).array();
|
||||||
let image = null
|
let image = null
|
||||||
if (!Attachment[0])
|
if (!Attachment[0] && !user)
|
||||||
image = message.author.displayAvatarURL
|
image = message.author.displayAvatarURL;
|
||||||
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
|
else if (!Attachment[0])
|
||||||
return message.say('Gif dosent work, sorry')
|
image = user.displayAvatarURL;
|
||||||
|
else if(Attachment[0].url.endsWith('gif'))
|
||||||
|
return message.say('Gif dosent work, sorry');
|
||||||
else
|
else
|
||||||
image = Attachment[0].url
|
image = Attachment[0].url
|
||||||
|
|
||||||
|
|
|
@ -13,18 +13,28 @@ module.exports = class uglyCommand extends Command {
|
||||||
group: 'images',
|
group: 'images',
|
||||||
memberName: 'ugly',
|
memberName: 'ugly',
|
||||||
description: `You are very ugly!`,
|
description: `You are very ugly!`,
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
key: 'user',
|
||||||
|
prompt: 'What do you want me to say',
|
||||||
|
type: 'user',
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message) {
|
async run(message, { user }) {
|
||||||
if(blacklist[message.author.id])
|
if(blacklist[message.author.id])
|
||||||
return message.channel.send("You are blacklisted")
|
return message.channel.send("You are blacklisted")
|
||||||
let Attachment = (message.attachments).array();
|
let Attachment = (message.attachments).array();
|
||||||
let image = null
|
let image = null
|
||||||
if (!Attachment[0])
|
if (!Attachment[0] && !user)
|
||||||
image = message.author.displayAvatarURL
|
image = message.author.displayAvatarURL;
|
||||||
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
|
else if (!Attachment[0])
|
||||||
return message.say('Gif dosent work, sorry')
|
image = user.displayAvatarURL;
|
||||||
|
else if(Attachment[0].url.endsWith('gif'))
|
||||||
|
return message.say('Gif dosent work, sorry');
|
||||||
else
|
else
|
||||||
image = Attachment[0].url
|
image = Attachment[0].url
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue