safeimage stuff

This commit is contained in:
2019-04-04 13:48:09 +11:00
parent 1ddd172478
commit a74b850587

View File

@@ -7,6 +7,7 @@ module.exports = {
if (msg.author.bot) return
if (msg.attachments.array().length = 0) return
var img = msg.attachments.first()
if (img == undefined) return
if (img.height == undefined) return
if (msg.channel.nsfw) return