diff --git a/src/commands/systemd_restart.ts b/src/commands/systemd_restart.ts index 3e3db9b..d21fb26 100644 --- a/src/commands/systemd_restart.ts +++ b/src/commands/systemd_restart.ts @@ -7,7 +7,7 @@ export default class SystemD_Restart extends Command { this.name = 'restart'; this.description = `Restarts a SystemD user service, if the service has never been started or isn't running use \`${this.client.config.prefix}systemd start \`.`; this.usage = `${this.client.config.prefix}systemd restart `; - this.enabled = true; + this.enabled = false; } public async run(message: Message, args: string[]) { diff --git a/src/commands/systemd_start.ts b/src/commands/systemd_start.ts index 1d6029f..944dd57 100644 --- a/src/commands/systemd_start.ts +++ b/src/commands/systemd_start.ts @@ -7,7 +7,7 @@ export default class SystemD_Start extends Command { this.name = 'start'; this.description = `Starts a SystemD user service, if the service is already running use \`${this.client.config.prefix}systemd restart \`.`; this.usage = `${this.client.config.prefix}systemd start `; - this.enabled = true; + this.enabled = false; } public async run(message: Message, args: string[]) { diff --git a/src/commands/systemd_status.ts b/src/commands/systemd_status.ts index 0afcf9b..1f7d51a 100644 --- a/src/commands/systemd_status.ts +++ b/src/commands/systemd_status.ts @@ -7,7 +7,7 @@ export default class SystemD_Status extends Command { this.name = 'status'; this.description = 'Prints out the status of a SystemD service that you run.'; this.usage = `${this.client.config.prefix}systemd status `; - this.enabled = true; + this.enabled = false; } public async run(message: Message, args: string[]) { diff --git a/src/cscli/main.ts b/src/cscli/main.ts index 37e5abe..6aaba58 100644 --- a/src/cscli/main.ts +++ b/src/cscli/main.ts @@ -65,6 +65,12 @@ export default class CSCLI { socket.write(`${sshLogins}\n`); socket.destroy(); break; + case 'ramlimit': + const account = await this.client.db.Account.findOne({ username: parsed.Username }).lean().exec(); + const tier = await this.client.db.Tier.findOne({ 'resourceLimits.ram': account.tier }).lean().exec(); + socket.write(`${tier.resourceLimits.ram}`); + socket.destroy(); + break; default: socket.destroy(); break;