diff --git a/simplecommands/plugin.ts b/simplecommands/plugin.ts index 7d5f91e..2602352 100644 --- a/simplecommands/plugin.ts +++ b/simplecommands/plugin.ts @@ -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);