Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions commands/knight/about.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{

"title": {
"ru": "Выпустить Рыцаря",
"en": "Release Knight",
"uk": "Висрати Лицаря"
},

"description": {
"ru": "Кидает в чат видео с танцующим рыцарем.",
"en": "Throws a video with a dancing knight into the chat.",
"uk": "Кидає в чат відео з рицарем, що танцює."
}

}
36 changes: 36 additions & 0 deletions commands/knight/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
const SlashOptions = require('../../BaseClasses/SlashOptions');
const BaseCommand = require('../../BaseClasses/BaseCommand');
const LangSingle = require('../../BaseClasses/LangSingle');
const { CommandInteraction } = require('discord.js');
const { title, description } = require('./about.json');

class Knight extends BaseCommand {

constructor (path) {
super(path);

this.category = 'Развлечения';
this.name = 'knight';
this.title = new LangSingle(title);
this.description = new LangSingle(description);
this.slashOptions = slashOptions;

return new Promise(async resolve => {
resolve(this);
});
}

async call (int) {
await int.reply({ content: 'https://cdn.discordapp.com/attachments/840321892136255528/1042826882174955550/outputcompress-video-online.com.mp4' });
Comment thread
Krashly marked this conversation as resolved.
Outdated
}

/**
* Функция обработки slash-команды.
* @param {CommandInteraction} int
*/
async slash (int) {
await this.call(int);
}
}

module.exports = Knight;