1 | exports.command = {
|
2 | name: "password",
|
3 | autoload: true,
|
4 | unloadable: false,
|
5 | min_rank: 0,
|
6 | display: "use this if you want to change your password",
|
7 | help: "Use this if you want to change your password.",
|
8 | usage: ".password",
|
9 |
|
10 | execute: function(socket, command, command_access) {
|
11 | var chalk = require('chalk');
|
12 | socket.write(chalk.green(":: ") + "Tell me your old password: ");
|
13 | socket.write(command_access.echo(false));
|
14 | socket.interactive = {type:"password", state:"old"};
|
15 | }
|
16 | }
|