mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
22 lines
529 B
JavaScript
22 lines
529 B
JavaScript
const Command = require('../../framework/Command');
|
|
const dotenv = require('dotenv');
|
|
|
|
module.exports = class UpdateEnvCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'update-env',
|
|
aliases: ['dotenv', 'update-process-env'],
|
|
group: 'util',
|
|
description: 'Updates the bot\'s environment variables.',
|
|
details: 'Only the bot owner(s) may use this command.',
|
|
ownerOnly: true,
|
|
guarded: true
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
dotenv.config();
|
|
return msg.say('Updated environment variables.');
|
|
}
|
|
};
|