Dosen't allow gif anymore

This commit is contained in:
loicbersier 2018-10-16 11:55:57 +02:00
parent a3c97834fb
commit 865c141b5b
7 changed files with 24 additions and 10 deletions

View file

@ -23,6 +23,8 @@ module.exports = class fetishCommand extends Command {
let image = null
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

@ -23,6 +23,8 @@ module.exports = class godCommand extends Command {
let image = null
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

@ -23,6 +23,8 @@ module.exports = class humanCommand extends Command {
let image = null
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

@ -32,6 +32,8 @@ module.exports = class idubbbzCommand extends Command {
let image = null
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

@ -32,6 +32,8 @@ module.exports = class idubbbzpaintCommand extends Command {
let image = null
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

@ -23,6 +23,8 @@ module.exports = class likeCommand extends Command {
let image = null
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

@ -23,6 +23,8 @@ module.exports = class uglyCommand extends Command {
let image = null
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