Files
xiao/commands/util/update-env.js
T
2024-03-30 01:02:07 -04:00

23 lines
558 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',
memberName: 'update-env',
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.');
}
};