1
0
Fork 0

add killpid command

refactor/models
Matthew 2020-06-21 01:10:37 -04:00
parent fee35c6fcb
commit a43de64957
No known key found for this signature in database
GPG Key ID: F841AB9BF496C194
1 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,10 @@ export default class CSCLI {
// FINISH VERIFICATION CHECKS // FINISH VERIFICATION CHECKS
switch (parsed.Type) { switch (parsed.Type) {
case 'lock': 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; break;
case 'ram': case 'ram':
const memoryConversion = dataConversion(Number(await this.client.util.exec(`memory ${parsed.Username}`)) * 1000); const memoryConversion = dataConversion(Number(await this.client.util.exec(`memory ${parsed.Username}`)) * 1000);