Update message.mjs
This commit is contained in:
parent
a4e347bcdc
commit
3bc2aa2b44
@ -13,10 +13,10 @@ const parseArgs = (msg) => {
|
|||||||
export default self => {
|
export default self => {
|
||||||
self.bot.on("message", e => {
|
self.bot.on("message", e => {
|
||||||
for (var [name, trigger] of self._trigger.entries()) {
|
for (var [name, trigger] of self._trigger.entries()) {
|
||||||
if (!e.self.me.nickname) {
|
//if (!e.self.me.nickname) {
|
||||||
e.reply("nope, still initialising myself :^)");
|
// e.reply("nope, still initialising myself :^)");
|
||||||
break;
|
// break;
|
||||||
}
|
//}
|
||||||
if (!trigger.call.exec(e.message))
|
if (!trigger.call.exec(e.message))
|
||||||
continue;
|
continue;
|
||||||
if (!trigger.clients.includes(e.type))
|
if (!trigger.clients.includes(e.type))
|
||||||
|
Loading…
Reference in New Issue
Block a user