@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 CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  ---
14
14
 
15
- ManyBot is free and open-source a messaging automation ecosystem for online businesses and communities.
15
+ ManyBot is a free and open-source messaging automation ecosystem for online businesses and communities.
16
16
 
17
17
  ## Requirements
18
18
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "SyntaxError!",
6
6
  "email": "me@stxerr.dev"
7
7
  },
8
- "version": "4.1.2",
8
+ "version": "4.1.3",
9
9
  "license": "GPL-3.0-only",
10
10
  "private": false,
11
11
  "engines": {
@@ -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
- return msg.body?.trim().toLowerCase().startsWith(cmd.toLowerCase());
270
+ const command = msg.body?.trim().split(/\s+/)[0].toLowerCase();
271
+ return command === cmd.toLowerCase();
271
272
  },
272
273
 
273
274
  hasMedia: msg.hasMedia,