Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

追加功能 #175

Merged
merged 1 commit into from
May 16, 2021
Merged

追加功能 #175

merged 1 commit into from
May 16, 2021

Conversation

niceRAM
Copy link
Contributor

@niceRAM niceRAM commented May 15, 2021

  • 允许通过临时会话私聊发送搜图结果
  • 可配置 r18 setu 图片仅通过私聊发送
  • 允许 r18 setu 通过临时会话私聊发送
  • 发送 setu 链接时可以追加若干个镜像链接
  • 可配置对镜像站做短链接处理,并增加一个短链接服务 ("oy.mk" by @Quan666)

- 允许通过临时会话私聊发送搜图结果
- 可配置r18 setu图片仅通过私聊发送
- 允许 r18 setu 通过临时会话私聊发送
- 发送 setu 链接时可以追加若干个镜像链接
- 可配置对镜像站做短链接处理,并增加一个短链接服务 "oy.mk" by @Quan666
@@ -7,7 +7,7 @@ const Axios = require('../axiosProxy');
* @param {string} url 长网址
* @returns 短网址
*/
function shorten(url) {
async function shorten(url) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种多余的 async 不用写了吧

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我这里测试的时候不加async,setu.js里await调用会报错,以防万一就加上了

return;
}
if (privateR18) {
urlMsg += "\r\n※ R18图片将反和谐后私聊发送";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

私聊不会被和谐,就不需要反和谐了,可以节省下步骤

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

了解了,之后考虑处理下

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没事,我只是提一下,我已经处理了(

@Tsuk1ko Tsuk1ko merged commit e4f71dd into Tsuk1ko:master May 16, 2021
@Tsuk1ko
Copy link
Owner

Tsuk1ko commented May 16, 2021

感谢 pr

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented May 16, 2021

config 做了下改动 r18OnlyPrivateTemp -> r18OnlyPrivateAllowTemp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants