fix message text errors
This commit is contained in:
parent
0856bcb0fe
commit
f1d9d4b0fb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user