@alemonjs/qq-bot 2.1.0-alpha.23 → 2.1.0-alpha.24

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.
Files changed (2) hide show
  1. package/lib/sends.js +3 -3
  2. package/package.json +1 -1
package/lib/sends.js CHANGED
@@ -97,10 +97,10 @@ const mdFormatters = {
97
97
  if (belong === 'channel') {
98
98
  return '';
99
99
  }
100
- if (belong === 'all') {
101
- return '<qqbot-at-everyone />';
100
+ if (belong === 'user') {
101
+ return `<qqbot-at-user id="${value}" />`;
102
102
  }
103
- if (value === 'everyone' || value === 'all' || value === '' || typeof value !== 'string') {
103
+ if (value === 'everyone') {
104
104
  return '<qqbot-at-everyone />';
105
105
  }
106
106
  return `<qqbot-at-user id="${value}" />`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alemonjs/qq-bot",
3
- "version": "2.1.0-alpha.23",
3
+ "version": "2.1.0-alpha.24",
4
4
  "description": "阿柠檬qq-bot平台连接",
5
5
  "author": "lemonade",
6
6
  "license": "MIT",