mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
v3.3.3
Новая генерация steamcard
This commit is contained in:
parent
ca2e3930cc
commit
31205292d7
4 changed files with 55 additions and 1 deletions
45
commands/Images/steamcard.js
Normal file
45
commands/Images/steamcard.js
Normal 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;
|
|
@ -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*.
|
||||||
|
|
5
languages/ru-RU/images/steamcard.json
Normal file
5
languages/ru-RU/images/steamcard.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"DESCRIPTION": "Создать изображение \"steamcard\"",
|
||||||
|
"USAGE": "{{prefix}}steamcard (@пользователь)",
|
||||||
|
"EXAMPLES": "{{prefix}}steamcard\n{{prefix}}steamcard @Jonny_Bro#4226"
|
||||||
|
}
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue