Closed hdfk7 closed 3 months ago
在chatgpt.ts定义一个启动时间 startTime: Date = new Date(); 然后在main.ts中的.on("message"方法中加入以下代码可以解决。 let msgDate = message.date(); if (msgDate.getTime() <= chatGPTBot.startTime.getTime()) { return; }
好的,我去复现一下,谢谢
请问网站在线部署 需要怎么操作
Please refer to this section in README, thanks.
Fixed in latest commit. Thanks a lot for your help!
在chatgpt.ts定义一个启动时间 startTime: Date = new Date(); 然后在main.ts中的.on("message"方法中加入以下代码可以解决。 let msgDate = message.date(); if (msgDate.getTime() <= chatGPTBot.startTime.getTime()) { return; }