From a43de64957f65cc9d7eaa9fced7bd951e8ba7a68 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 21 Jun 2020 01:10:37 -0400 Subject: [PATCH] add killpid command --- src/cscli/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cscli/main.ts b/src/cscli/main.ts index e0d72ee..bf864de 100644 --- a/src/cscli/main.ts +++ b/src/cscli/main.ts @@ -40,7 +40,10 @@ export default class CSCLI { // FINISH VERIFICATION CHECKS switch (parsed.Type) { case 'lock': - await this.client.util.accounts.lock(parsed.Username, this.client.user.id, { reason: 'Failed to accept Terms of Service.' }); + await this.client.util.accounts.lock(parsed.Username, this.client.user.id, { reason: parsed.Message }); + break; + case 'killpid': + await this.client.util.exec(`kill -9 ${parsed.Message}`); break; case 'ram': const memoryConversion = dataConversion(Number(await this.client.util.exec(`memory ${parsed.Username}`)) * 1000);