miao-plugin/config/profile_default.js

46 lines
1.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 如需配置【复制】此文件改名为profile.js
* 暂未做热更新修改完毕请重启yunzai
* */
/**
* Enka面板服务API配置
*
* 【Enka官网】https://enka.network/
* 感谢Enka提供的面板查询服务如果可以的话也可考虑在Patreon上支持Enka
* 【Patreon】https://www.patreon.com/algoinde
*
* 目前使用Miao-Plugin的默认UA请求国服UID时
* 会默认重定向 https://enka.network/ 到 https://profile.microgg.cn/
* 感谢@MiniGrayGay 大佬提供的服务(Github: https://github.com/MiniGrayGay)
*
* 使用代理(科学上网)可以配置proxyAgent
* 例如: http://127.0.0.1:1080
*
* */
export const enkaApi = {
url: 'https://enka.network/', // 请求API地址可从上方提供的API地址中进行选择
proxyAgent: '' // 请求的proxy配置如无需proxy则留空
}
/**
* 喵喵Api 私有的面板更新服务
* 供Yunzai开发者及有投喂的老板们小范围使用
*
* 喵喵API承载能力有限Enka可用的情况下建议使用Enkatoken有有效期限制请勿强行投喂
* token请勿外传一个token仅供一个bot使用多bot复用的话可能导致token失效
* */
export const miaoApi = {
qq: '在此处填写主人QQ',
token: '在此处填写QQ对应Token'
}
/**
* 单个用户请求面板的间隔时间,单位分钟
* 不同用户的计时独立
*
* 部分服务会同时返回服务侧更新冷却时间,若服务侧查询冷却大于更新间隔
* 会以服务侧查询冷却为准(在服务侧冷却时间内,即使请求也不会返回更新数据)
* */
export const requestInterval = 5