add killpid command
parent
fee35c6fcb
commit
a43de64957
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue