Browse Source

fild typo

push-params
Evan Feenstra 4 years ago
parent
commit
02e1c005de
  1. 6
      api/network/intercept.ts
  2. 6
      dist/api/network/intercept.js
  3. 2
      dist/api/network/intercept.js.map

6
api/network/intercept.ts

@ -45,11 +45,11 @@ export async function isBotMsg(msg:Msg, sentByMe:boolean): Promise<boolean> {
try {
const msgTypes = JSON.parse(botInTribe.msgTypes)
if(msgTypes.includes(msgType)){
didEmit = await emitMessageToBot(msg, botInTribe)
didEmit = await emitMessageToBot(msg, botInTribe.dataValues)
}
} catch(e){}
} else { // no message types defined, do all?
didEmit = await emitMessageToBot(msg, botInTribe)
didEmit = await emitMessageToBot(msg, botInTribe.dataValues)
}
}
})
@ -59,7 +59,7 @@ export async function isBotMsg(msg:Msg, sentByMe:boolean): Promise<boolean> {
async function emitMessageToBot(msg, botInTribe): Promise<boolean> {
console.log("EMIT MSG TO BOT",msg,botInTribe)
switch (botInTribe.type) {
switch (botInTribe.botType) {
case constants.bot_types.builtin:
builtinBotEmit(msg)
return true

6
dist/api/network/intercept.js

@ -50,13 +50,13 @@ function isBotMsg(msg, sentByMe) {
try {
const msgTypes = JSON.parse(botInTribe.msgTypes);
if (msgTypes.includes(msgType)) {
didEmit = yield emitMessageToBot(msg, botInTribe);
didEmit = yield emitMessageToBot(msg, botInTribe.dataValues);
}
}
catch (e) { }
}
else { // no message types defined, do all?
didEmit = yield emitMessageToBot(msg, botInTribe);
didEmit = yield emitMessageToBot(msg, botInTribe.dataValues);
}
}
}));
@ -67,7 +67,7 @@ exports.isBotMsg = isBotMsg;
function emitMessageToBot(msg, botInTribe) {
return __awaiter(this, void 0, void 0, function* () {
console.log("EMIT MSG TO BOT", msg, botInTribe);
switch (botInTribe.type) {
switch (botInTribe.botType) {
case constants.bot_types.builtin:
bots_1.builtinBotEmit(msg);
return true;

2
dist/api/network/intercept.js.map

@ -1 +1 @@
{"version":3,"file":"intercept.js","sourceRoot":"","sources":["../../../api/network/intercept.ts"],"names":[],"mappings":";;;;;;;;;;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