diff --git a/Commands/Images/ad.js b/Commands/Images/ad.js new file mode 100644 index 0000000..1fd727b --- /dev/null +++ b/Commands/Images/ad.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "ad", + description: "Display an ad image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Ad().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/affect.js b/Commands/Images/affect.js new file mode 100644 index 0000000..6e38544 --- /dev/null +++ b/Commands/Images/affect.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "affect", + description: "Return an affect image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Affect().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/beautiful.js b/Commands/Images/beautiful.js new file mode 100644 index 0000000..ce00756 --- /dev/null +++ b/Commands/Images/beautiful.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "beautiful", + description: "Return a beautiful image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Beautiful().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/blur.js b/Commands/Images/blur.js new file mode 100644 index 0000000..f7d3fce --- /dev/null +++ b/Commands/Images/blur.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "blur", + description: "Return a blured image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Blur().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/circle.js b/Commands/Images/circle.js new file mode 100644 index 0000000..216ee51 --- /dev/null +++ b/Commands/Images/circle.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "circle", + description: "Return a circled image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Circle().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/confuedStonk.js b/Commands/Images/confuedStonk.js new file mode 100644 index 0000000..74430e5 --- /dev/null +++ b/Commands/Images/confuedStonk.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "confusedstonk", + description: "Return a confused stonk image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.ConfusedStonk().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/delete.js b/Commands/Images/delete.js new file mode 100644 index 0000000..16b95da --- /dev/null +++ b/Commands/Images/delete.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "delete", + description: "Return a dalete image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Delete().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/facepalm.js b/Commands/Images/facepalm.js new file mode 100644 index 0000000..2a9088f --- /dev/null +++ b/Commands/Images/facepalm.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "facepalm", + description: "Return a facepalm.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Facepalm().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/gay.js b/Commands/Images/gay.js new file mode 100644 index 0000000..12a941e --- /dev/null +++ b/Commands/Images/gay.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "gay", + description: "Return a gay image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Gay().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/greyscale.js b/Commands/Images/greyscale.js new file mode 100644 index 0000000..522b6e6 --- /dev/null +++ b/Commands/Images/greyscale.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "greyscale", + description: "Return a greyscaled image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Greyscale().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/hitler.js b/Commands/Images/hitler.js new file mode 100644 index 0000000..0461614 --- /dev/null +++ b/Commands/Images/hitler.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "hitler", + description: "Return an hitler image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Hitler().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/invert.js b/Commands/Images/invert.js new file mode 100644 index 0000000..ddedc58 --- /dev/null +++ b/Commands/Images/invert.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "invert", + description: "Returnan inverted image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Invert().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/jail.js b/Commands/Images/jail.js new file mode 100644 index 0000000..034d0c1 --- /dev/null +++ b/Commands/Images/jail.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "jail", + description: "Return a jail image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Jail().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/lisaPresentation.js b/Commands/Images/lisaPresentation.js new file mode 100644 index 0000000..c8944eb --- /dev/null +++ b/Commands/Images/lisaPresentation.js @@ -0,0 +1,24 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "lisapresentation", + description: "Return a lisa presentation image.", + category: "Images", + enabled: true, + aliases: ["lisa"], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let text = args.join(" ") + if(!text) text = message.author.username; + let img = await new DIG.LisaPresentation().getImage(text); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/mms.js b/Commands/Images/mms.js new file mode 100644 index 0000000..3663b4b --- /dev/null +++ b/Commands/Images/mms.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "mms", + description: "Return an m&ms image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Mms().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/notstonk.js b/Commands/Images/notstonk.js new file mode 100644 index 0000000..70351b4 --- /dev/null +++ b/Commands/Images/notstonk.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "notstonk", + description: "Return a not stonk image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.NotStonk().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/poutine.js b/Commands/Images/poutine.js new file mode 100644 index 0000000..1275442 --- /dev/null +++ b/Commands/Images/poutine.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "poutine", + description: "Return a poutine image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Poutine().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/rip.js b/Commands/Images/rip.js new file mode 100644 index 0000000..ab56e71 --- /dev/null +++ b/Commands/Images/rip.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "rip", + description: "Return a RIP image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Rip().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/sepia.js b/Commands/Images/sepia.js new file mode 100644 index 0000000..608ee4d --- /dev/null +++ b/Commands/Images/sepia.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "sepia", + description: "Return a sepia image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Sepia().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/stonk.js b/Commands/Images/stonk.js new file mode 100644 index 0000000..0f318d5 --- /dev/null +++ b/Commands/Images/stonk.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "stonk", + description: "Return a stonk image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Stonk().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/tatoo.js b/Commands/Images/tatoo.js new file mode 100644 index 0000000..cebeb01 --- /dev/null +++ b/Commands/Images/tatoo.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "tatoo", + description: "Return a tatoo image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Tatoo().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/thomas.js b/Commands/Images/thomas.js new file mode 100644 index 0000000..e5394b7 --- /dev/null +++ b/Commands/Images/thomas.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "thomas", + description: "Return a thomas image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Thomas().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/trash.js b/Commands/Images/trash.js new file mode 100644 index 0000000..6adfa20 --- /dev/null +++ b/Commands/Images/trash.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "trash", + description: "Return a trash image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Trash().getImage(avatar); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Images/wanted.js b/Commands/Images/wanted.js new file mode 100644 index 0000000..8b4d6ae --- /dev/null +++ b/Commands/Images/wanted.js @@ -0,0 +1,23 @@ +let Command = require(`../../Structure/Command.js`); +const DIG = require("discord-image-generation"); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: "wanted", + description: "Return a wanted image.", + category: "Images", + enabled: true, + aliases: [], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + let avatar = message.author.avatarURL; + let img = await new DIG.Wanted().getImage(avatar, "$"); + message.chat.sendMessage("Please wait we're generating your image..."); + message.chat.sendPhoto(img); + } +}; \ No newline at end of file diff --git a/Commands/Utils/myInfos.js b/Commands/Utils/myInfos.js new file mode 100644 index 0000000..4b41ded --- /dev/null +++ b/Commands/Utils/myInfos.js @@ -0,0 +1,31 @@ +const Command = require(`../../Structure/Command.js`); + +module.exports = class extends Command { + constructor(client) { + super(client, { + name: `myinfos`, + description: `Return some informations about you.`, + category: `Utils`, + enabled: true, + aliases: [`me`], + cooldown: 3, + dmOnly: false, + }); + } + + async run(message, args) { + message.chat.sendMessage( +`FUll Name: ${message.author.fullName} +Username: ${message.author.username} +ID: ${message.author.id} +Biography:\n${message.author.biography} +Followers: ${message.author.followerCount} +Following: ${message.author.followingCount} +Business: ${message.author.isBusiness} +Verified: ${message.author.isVerified} +Private: ${message.author.isPrivate} +Number Of Posts: ${message.author.mediaCount} +Number Of IGTV posts: ${message.author.totalIgtvVideos} +`) + } +} \ No newline at end of file diff --git a/README.md b/README.md index 6fc86b4..5f9fd7d 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,43 @@ it means that the bot is ready to be used. 🎉 # Available commands +## Bot - !ping: Return the bot ping + +## Images +- !ad: Return an ad image. +- !affect: Return an affect image. +- !beautiful: Return a beautiful image. +- !blur: Return a blured image. +- !circle: Return a circled image. +- !confuedStonk: Return a confuedStonk image. +- !delete: Return a delete image. +- !facepalm: Return a facepalm image. +- !gay: Return a gay image. +- !greyscale: Return a greyscale image. +- !hitler: Return an hitler image. +- !invert: Return an invert image. +- !jail: Return a jail image. +- !lisaPresentation: Return a lisaPresentation image. +- !mms: Return a mms image. +- !notstonk: Return a notstonk image. +- !poutine: Return a poutine image. +- !rip: Return a rip image. +- !sepia: Return a sepia image. +- !stonk: Return a stonk image. +- !tatoo: Return a tatoo image. +- !thomas: Return a thomas image. +- !trash: Return a trash image. +- !wanted: Return a wanted image. + +## Utils +- !myinfos: Return some informations about you. (missing some infos) + +# Known bugs + +- A story answer return an error (TypeError: Cannot read property 'indexOf' of undefined) + # Future updates - Ability to change the prefix on a chat diff --git a/package.json b/package.json index 8b99bfd..5e72898 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "instabot", - "version": "1.0.0", + "version": "1.1.2", "description": "A fully working instagram bot using Insta.js by androz2091", "main": "index.js", "scripts": { @@ -13,6 +13,7 @@ "@androz2091/insta.js": "github:androz2091/insta.js#develop", "@discordjs/collection": "^0.1.6", "chalk": "^4.1.0", + "discord-image-generation": "^1.3.7", "dotenv": "^8.2.0" } }