Revert change

This commit is contained in:
Loïc Bersier 2018-11-13 20:33:26 +01:00
parent 3e625b020b
commit 05612d2a64
7 changed files with 37 additions and 107 deletions

View file

@ -13,31 +13,18 @@ module.exports = class fetishCommand extends Command {
group: 'images',
memberName: 'fetish',
description: `My fetish`,
args: [
{
key: 'user',
prompt: 'What do you want me to say',
type: 'user',
default: ''
}
]
});
}
async run(message, { user }) {
// Check if user is blacklisted
async run(message) {
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0] && !user)
image = message.author.displayAvatarURL;
else if (!Attachment[0])
image = user.displayAvatarURL;
else if(Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry');
if (!Attachment[0])
image = message.author.displayAvatarURL
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry')
else
image = Attachment[0].url

View file

@ -13,29 +13,18 @@ module.exports = class godCommand extends Command {
group: 'images',
memberName: 'god',
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, { user }) {
async run(message) {
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0] && !user)
image = message.author.displayAvatarURL;
else if (!Attachment[0])
image = user.displayAvatarURL;
else if(Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry');
if (!Attachment[0])
image = message.author.displayAvatarURL
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry')
else
image = Attachment[0].url

View file

@ -13,28 +13,18 @@ module.exports = class humanCommand extends Command {
group: 'images',
memberName: '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, { user }) {
async run(message) {
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0] && !user)
image = message.author.displayAvatarURL;
else if (!Attachment[0])
image = user.displayAvatarURL;
else if(Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry');
if (!Attachment[0])
image = message.author.displayAvatarURL
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry')
else
image = Attachment[0].url

View file

@ -20,30 +20,22 @@ module.exports = class idubbbzCommand extends Command {
prompt: 'What do you the paper to say?',
type: 'string',
default: 'Nigger Faggot'
},
{
key: 'user',
prompt: 'What do you want me to say',
type: 'user',
default: ''
}
]
});
}
async run(message, { text, user }) {
async run(message, { text }) {
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0] && !user)
image = message.author.displayAvatarURL;
else if (!Attachment[0])
image = user.displayAvatarURL;
else if(Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry');
else
image = Attachment[0].url
if (!Attachment[0])
image = message.author.displayAvatarURL
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry')
else
image = Attachment[0].url
const canvas = createCanvas(1281, 627)
const applyText = (canvas, text) => {

View file

@ -20,28 +20,20 @@ module.exports = class idubbbzpaintCommand extends Command {
prompt: 'What do you the paper to say?',
type: 'string',
default: 'Perfection'
},
{
key: 'user',
prompt: 'What do you want me to say',
type: 'user',
default: ''
}
]
});
}
async run(message, { text, user }) {
async run(message, { text }) {
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0] && !user)
image = message.author.displayAvatarURL;
else if (!Attachment[0])
image = user.displayAvatarURL;
else if(Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry');
if (!Attachment[0])
image = message.author.displayAvatarURL
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry')
else
image = Attachment[0].url

View file

@ -13,28 +13,18 @@ module.exports = class likeCommand extends Command {
group: 'images',
memberName: 'like',
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, { user }) {
async run(message) {
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0] && !user)
image = message.author.displayAvatarURL;
else if (!Attachment[0])
image = user.displayAvatarURL;
else if(Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry');
if (!Attachment[0])
image = message.author.displayAvatarURL
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry')
else
image = Attachment[0].url

View file

@ -13,28 +13,18 @@ module.exports = class uglyCommand extends Command {
group: 'images',
memberName: 'ugly',
description: `You are very ugly!`,
args: [
{
key: 'user',
prompt: 'What do you want me to say',
type: 'user',
default: ''
}
]
});
}
async run(message, { user }) {
async run(message) {
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0] && !user)
image = message.author.displayAvatarURL;
else if (!Attachment[0])
image = user.displayAvatarURL;
else if(Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry');
if (!Attachment[0])
image = message.author.displayAvatarURL
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
return message.say('Gif dosent work, sorry')
else
image = Attachment[0].url