koishi-plugin-toram 0.2.6-alpha.3 → 0.2.7

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/lib/index.js CHANGED
@@ -26,7 +26,6 @@ async function apply(ctx, config) {
26
26
  id: 'string',
27
27
  form: 'number',
28
28
  member_id: 'number',
29
- member_name: 'string',
30
29
  until_Unix: 'number',
31
30
  until_string: 'string',
32
31
  content: 'string'
@@ -69,7 +68,6 @@ async function apply(ctx, config) {
69
68
  return '你确定是这个日期吗?';
70
69
  }
71
70
  ;
72
- 截止时间date.setDate(截止时间date.getDate() + 1);
73
71
  let 截止时间戳 = 截止时间date.getTime();
74
72
  const 截止时间后缀 = 截止时间.split("日")[1];
75
73
  const 截止时间戳增加 = Number(时间戳增加对应[截止时间后缀]) || 24 * 60 * 60 * 1000;
@@ -80,8 +78,7 @@ async function apply(ctx, config) {
80
78
  return '只支持输入未来' + config.组队_未来天数 + '天的时间哦~';
81
79
  }
82
80
  ;
83
- const { nickname } = await session.onebot.getGroupMemberInfo(guildId, userId, true);
84
- await ctx.database.upsert('toram_team', [{ id: `${guildId}${userId}`, form: guildId, member_id: userId, member_name: nickname, until_Unix: 截止时间戳, until_string: 截止时间, content: 组队内容 }]);
81
+ await ctx.database.upsert('toram_team', [{ id: `${guildId}${userId}`, form: guildId, member_id: userId, until_Unix: 截止时间戳, until_string: 截止时间, content: 组队内容 }]);
85
82
  return '成功发布求组信息到组队大厅!';
86
83
  });
87
84
  ctx.command('组队大厅 [页码]').action(async ({ session }, 输入页码) => {