mirror of
https://github.com/reality/dbot.git
synced 2025-01-13 05:32:36 +01:00
not in all messages..
This commit is contained in:
parent
e1047362a2
commit
f3e31925af
4
run.js
4
run.js
@ -108,6 +108,8 @@ DBot.prototype.reloadModules = function() {
|
|||||||
this.save();
|
this.save();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
var q = data.message.valMatch(/^~([\d\w\s-]*)/, 2);
|
||||||
|
if(q) {
|
||||||
// See if it's similar to anything
|
// See if it's similar to anything
|
||||||
var winnerDistance = Infinity;
|
var winnerDistance = Infinity;
|
||||||
var winner = false;
|
var winner = false;
|
||||||
@ -122,8 +124,6 @@ DBot.prototype.reloadModules = function() {
|
|||||||
if(winnerDistance < 3) {
|
if(winnerDistance < 3) {
|
||||||
this.say(data.channel, 'Did you mean ' + winner + '? Learn to type, hippie!');
|
this.say(data.channel, 'Did you mean ' + winner + '? Learn to type, hippie!');
|
||||||
} else { // See if there's anything in quotes
|
} else { // See if there's anything in quotes
|
||||||
var q = data.message.valMatch(/^~([\d\w\s-]*)/, 2);
|
|
||||||
if(q) {
|
|
||||||
if(this.db.bans['*'].include(data.user)) {
|
if(this.db.bans['*'].include(data.user)) {
|
||||||
this.say(data.channel, data.user +
|
this.say(data.channel, data.user +
|
||||||
' is banned from using this command. Commence incineration.');
|
' is banned from using this command. Commence incineration.');
|
||||||
|
Loading…
Reference in New Issue
Block a user