mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Add Owner Utility Group
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
const Command = require('../../structures/Command');
|
||||
|
||||
module.exports = class CommandLeaderboardExportCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'command-leaderboard-export',
|
||||
aliases: [
|
||||
'cmd-lb-export',
|
||||
'cmd-leaderboard-export',
|
||||
'command-lb-export',
|
||||
'export-cmd-lb',
|
||||
'export-cmd-leaderboard',
|
||||
'export-command-lb',
|
||||
'export-command-leaderboard'
|
||||
],
|
||||
group: 'util',
|
||||
memberName: 'command-leaderboard-export',
|
||||
description: 'Exports a command leaderboard JSON file.',
|
||||
details: 'Only the bot owner(s) may use this command.',
|
||||
ownerOnly: true,
|
||||
guarded: true
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
const result = this.client.exportCommandLeaderboard();
|
||||
return msg.say({ files: [{ attachment: result, name: 'command-leaderboard.json' }] });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user