Add load, unload, and update-env from Hermes

This commit is contained in:
Dragon Fire
2024-03-24 16:18:18 -04:00
parent dd12aa7db7
commit 0c7c8abc37
3 changed files with 91 additions and 0 deletions
+21
View File
@@ -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.');
}
};