Новая генерация steamcard
This commit is contained in:
JonnyBro 2022-01-24 18:36:48 +05:00
parent ca2e3930cc
commit 31205292d7
4 changed files with 55 additions and 1 deletions

View file

@ -0,0 +1,45 @@
const Command = require("../../base/Command");
class SteamCard extends Command {
constructor(client) {
super(client, {
name: "steamcard",
dirname: __dirname,
enabled: true,
guildOnly: false,
aliases: ["sc"],
memberPermissions: [],
botPermissions: ["SEND_MESSAGES", "EMBED_LINKS", "ATTACH_FILES"],
nsfw: false,
ownerOnly: false,
cooldown: 3000
});
}
async run(message, args) {
const text = args.join(" ");
if (!text) return message.error("images/qrcode:MISSING_TEXT");
const user = await this.client.resolveUser(args[0]) || message.author;
const m = await message.sendT("misc:PLEASE_WAIT", null, {
prefixEmoji: "loading"
});
const buffer = await this.client.AmeAPI.generate("steamcard", {
text: text,
url: user.displayAvatarURL({
format: "png",
size: 512
})
});
m.delete();
message.channel.send({
files: [{
name: "steamcard.png",
attachment: buffer
}]
});
}
}
module.exports = SteamCard;

View file

@ -1,3 +1,7 @@
### JaBa v3.3.3
* Добавлено
* Команды *steamcard* в категорию *Images*.
### JaBa v3.3.2 ### JaBa v3.3.2
* Добавлено * Добавлено
* Команды *crush*, *magik* и *ps4* в категорию *Images*. * Команды *crush*, *magik* и *ps4* в категорию *Images*.

View file

@ -0,0 +1,5 @@
{
"DESCRIPTION": "Создать изображение \"steamcard\"",
"USAGE": "{{prefix}}steamcard (@пользователь)",
"EXAMPLES": "{{prefix}}steamcard\n{{prefix}}steamcard @Jonny_Bro#4226"
}

View file

@ -1,6 +1,6 @@
{ {
"name": "jaba", "name": "jaba",
"version": "3.3.2", "version": "3.3.3",
"description": "A very complete Discord bot (more than 100 commands) that uses the Discord.js", "description": "A very complete Discord bot (more than 100 commands) that uses the Discord.js",
"main": "index.js", "main": "index.js",
"private": true, "private": true,