Added '/whoami' command
This commit is contained in:
parent
5e3abe2347
commit
03d8510486
@ -37,6 +37,7 @@ These are the commands currently implemented:
|
||||
- [x] /slap
|
||||
- [x] /topic
|
||||
- [x] /voice
|
||||
- [x] /whoami
|
||||
- [x] /whois
|
||||
|
||||
## Install
|
||||
|
@ -30,6 +30,7 @@ $(function() {
|
||||
"/slap",
|
||||
"/topic",
|
||||
"/voice",
|
||||
"/whoami",
|
||||
"/whois",
|
||||
];
|
||||
|
||||
|
@ -280,10 +280,13 @@ function input(data) {
|
||||
}
|
||||
break;
|
||||
|
||||
case "whoami":
|
||||
var user = client.me;
|
||||
case "query":
|
||||
case "whois":
|
||||
if (client && args[1]) {
|
||||
client.whois(args[1]);
|
||||
var user = user || args[1];
|
||||
if (client && user) {
|
||||
client.whois(user);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user