fix message text errors

This commit is contained in:
Evert Prants 2020-12-05 18:16:15 +02:00
parent 0856bcb0fe
commit f1d9d4b0fb
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -6,7 +6,7 @@ import {
DependencyUnload
} from '@squeebot/core/lib/plugin';
import { EMessageType, IMessage, IMessageTarget } from '@squeebot/core/lib/types';
import { EMessageType, IMessage } from '@squeebot/core/lib/types';
import { fullIDMatcher } from '@squeebot/core/lib/common';
@ -314,7 +314,7 @@ class SqueebotCommandsAPIPlugin extends Plugin {
allowedPlugins = chan.plugins;
}
const text = msg.data.text ? msg.data.text : msg.data;
const text = msg.text;
const prefixes = this.config.config.prefix;
const keywords = this.config.config.keywords;
@ -442,7 +442,7 @@ class SqueebotCommandsAPIPlugin extends Plugin {
// Iteration 3: Match permissions for user
matching = this.permissionMatcher(msg, matching);
const text = msg.data.text ? msg.data.text : msg.data;
const text = msg.text;
const argv = text.toLowerCase().split(' ');
const b = (t: string) => {
return msg.source.format.format('bold', t);