@manybot/manybot 4.1.2 → 4.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/kernel/pluginApi.js +2 -1
package/README.md
CHANGED
package/package.json
CHANGED
package/src/kernel/pluginApi.js
CHANGED
|
@@ -267,7 +267,8 @@ export function buildApi({ msg, chat, client, pluginRegistry }) {
|
|
|
267
267
|
|
|
268
268
|
/** Check if message starts with a command. */
|
|
269
269
|
is(cmd) {
|
|
270
|
-
|
|
270
|
+
const command = msg.body?.trim().split(/\s+/)[0].toLowerCase();
|
|
271
|
+
return command === cmd.toLowerCase();
|
|
271
272
|
},
|
|
272
273
|
|
|
273
274
|
hasMedia: msg.hasMedia,
|