mirror of https://github.com/Nofated095/Q2TG.git
Compare commits
5 Commits
eedbe2a2e0
...
1bd352145c
Author | SHA1 | Date |
---|---|---|
Nofated095 | 1bd352145c | |
Nofated095 | 7faef3fdd8 | |
clansty | 252b17cc08 | |
凌莞~(=^▽^=) | 8c3edf67e1 | |
凌莞~(=^▽^=) | 21a65dabc0 |
|
@ -1,5 +1,8 @@
|
|||
# Q2TG - without User Bot
|
||||
QQ 群与 Telegram 群相互转发的 bot,但是去除了 _UserBot_ 模式,再也不用担心杜叔叔瞎几把封号啦!
|
||||
|
||||
A **fork** of [Clansty/Q2TG](https://github.com/Clansty/Q2TG). Deleted UserBot function.
|
||||
|
||||
QQ 群与 Telegram 群相互转发的 bot,但是去除了 _UserBot_ 模式,再也不用担心杜叔叔把 UserBot 封号啦!
|
||||
|
||||
## 为什么不需要 User Bot
|
||||
|
||||
|
|
|
@ -23,6 +23,13 @@ services:
|
|||
container_name: zincsearch
|
||||
image: 'public.ecr.aws/zinclabs/zinc:latest'
|
||||
restart: unless-stopped
|
||||
sign:
|
||||
image: xzhouqd/qsign:core-1.1.9
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# 需要与下方的 SIGN_VER 同步
|
||||
# 配置请参考 https://hub.docker.com/r/xzhouqd/qsign
|
||||
- BASE_PATH=/srv/qsign/qsign/txlib/8.9.71
|
||||
q2tg:
|
||||
image: ghcr.io/nofated095/q2tg:rainbowcat
|
||||
container_name: main_q2tg
|
||||
|
@ -30,6 +37,7 @@ services:
|
|||
depends_on:
|
||||
- postgres
|
||||
- zinclabs
|
||||
- sign
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
environment:
|
||||
|
@ -42,6 +50,8 @@ services:
|
|||
- ZINC_URL=http://zinclabs:4080
|
||||
- ZINC_USERNAME=admin
|
||||
- ZINC_PASSWORD=password
|
||||
- SIGN_API=http://sign:8080/sign?key=114514
|
||||
- SIGN_VER=8.9.71 # 与上方 sign 容器的配置同步
|
||||
# 要支持转发时自动识别语音,请设置以下参数
|
||||
- BAIDU_APP_ID=
|
||||
- BAIDU_API_KEY=
|
||||
|
|
|
@ -84,13 +84,18 @@ export default class SetupController {
|
|||
]);
|
||||
const platform = setupHelper.convertTextToPlatform(platformText);
|
||||
|
||||
let signApi = await this.setupService.waitForOwnerInput('请输入签名服务器地址', [
|
||||
[Button.text('不需要签名服务器', true, true)],
|
||||
]);
|
||||
signApi = setupHelper.checkSignApiAddress(signApi);
|
||||
let signApi: string;
|
||||
|
||||
let signVer = ""
|
||||
if (signApi !== "") {
|
||||
if (!process.env.SIGN_API) {
|
||||
signApi = await this.setupService.waitForOwnerInput('请输入签名服务器地址', [
|
||||
[Button.text('不需要签名服务器', true, true)],
|
||||
]);
|
||||
signApi = setupHelper.checkSignApiAddress(signApi);
|
||||
}
|
||||
|
||||
let signVer: string;
|
||||
|
||||
if (signApi && !process.env.SIGN_VER) {
|
||||
signVer = await this.setupService.waitForOwnerInput('请输入签名服务器版本,当前支持安卓(8.9.63、8.9.68、8.9.70)、Tim(3.5.1、3.5.2)', [
|
||||
[Button.text('8.9.63', true, true)],
|
||||
[Button.text('8.9.68', true, true)],
|
||||
|
@ -98,7 +103,7 @@ export default class SetupController {
|
|||
[Button.text('3.5.1', true, true)],
|
||||
[Button.text('3.5.2', true, true)],
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
||||
let password = await this.setupService.waitForOwnerInput('请输入密码', undefined, true);
|
||||
password = md5Hex(password);
|
||||
|
|
|
@ -120,8 +120,8 @@ export default class Instance {
|
|||
uin: Number(this.qq.uin),
|
||||
password: this.qq.password,
|
||||
platform: this.qq.platform,
|
||||
signApi: this.qq.signApi,
|
||||
signVer: this._qq.signVer,
|
||||
signApi: this.qq.signApi || process.env.SIGN_API,
|
||||
signVer: this.qq.signVer || process.env.SIGN_VER,
|
||||
onQrCode: async (file) => {
|
||||
await this.ownerChat.sendMessage({
|
||||
message: '请使用已登录这个账号的手机 QQ 扫描这个二维码授权',
|
||||
|
|
Loading…
Reference in New Issue