fix message text errors
This commit is contained in:
parent
0856bcb0fe
commit
f1d9d4b0fb
@ -6,7 +6,7 @@ import {
|
|||||||
DependencyUnload
|
DependencyUnload
|
||||||
} from '@squeebot/core/lib/plugin';
|
} 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';
|
import { fullIDMatcher } from '@squeebot/core/lib/common';
|
||||||
|
|
||||||
@ -314,7 +314,7 @@ class SqueebotCommandsAPIPlugin extends Plugin {
|
|||||||
allowedPlugins = chan.plugins;
|
allowedPlugins = chan.plugins;
|
||||||
}
|
}
|
||||||
|
|
||||||
const text = msg.data.text ? msg.data.text : msg.data;
|
const text = msg.text;
|
||||||
const prefixes = this.config.config.prefix;
|
const prefixes = this.config.config.prefix;
|
||||||
const keywords = this.config.config.keywords;
|
const keywords = this.config.config.keywords;
|
||||||
|
|
||||||
@ -442,7 +442,7 @@ class SqueebotCommandsAPIPlugin extends Plugin {
|
|||||||
// Iteration 3: Match permissions for user
|
// Iteration 3: Match permissions for user
|
||||||
matching = this.permissionMatcher(msg, matching);
|
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 argv = text.toLowerCase().split(' ');
|
||||||
const b = (t: string) => {
|
const b = (t: string) => {
|
||||||
return msg.source.format.format('bold', t);
|
return msg.source.format.format('bold', t);
|
||||||
|
Loading…
Reference in New Issue
Block a user