mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Add load, unload, and update-env from Hermes
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
dotenv.config();
|
||||
return msg.say('Updated environment variables.');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user