Added images generations + myinfos command

main
Killian 4 years ago
parent 9913d7b895
commit 3a5b01dadc

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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);
}
};

@ -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}
`)
}
}

@ -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

@ -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"
}
}

Loading…
Cancel
Save