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