mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
derp
This commit is contained in:
parent
0a212bab1d
commit
7517540cc5
@ -12,6 +12,9 @@ var command = function(dbot) {
|
|||||||
*/
|
*/
|
||||||
this.listener = function(event) {
|
this.listener = function(event) {
|
||||||
var commandName = event.params[0];
|
var commandName = event.params[0];
|
||||||
|
if(commandName.charAt(0) != '~') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(!_.has(dbot.commands, commandName)) {
|
if(!_.has(dbot.commands, commandName)) {
|
||||||
if(_.has(dbot.modules, 'spelling')) {
|
if(_.has(dbot.modules, 'spelling')) {
|
||||||
var commands = _.keys(dbot.commands)
|
var commands = _.keys(dbot.commands)
|
||||||
|
Loading…
Reference in New Issue
Block a user