- 安装好
docker-compose
- 把
docker-compose.yml
文件和config.py
以及tgdata.db
放在同一个文件夹 - 在该目录下执行
docker-compose up -d
- 通过
docker-compose logs -f
可以查看日志里输出的二维码之类的信息(CTRL + C
退出) - 更新的话修改
docker-compose.yml
文件里第二行的版本号为新的版本号重新执行docker-compose up -d
即可
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Base] | |
Version = 0.45 | |
File Refresh Time = 15 | |
Large Buffer Size = 4096 | |
Additional Path = | |
Hosts File Name = Hosts.ini | |
IPFilter File Name = IPFilter.ini|Routing.txt | |
[Log] | |
Print Log Level = 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017-05-15 02:33:42,250: telegram.ext.dispatcher [ERROR] | |
An uncaught error was raised while processing the update | |
Traceback (most recent call last): | |
File "/usr/lib/python3.6/site-packages/telegram/ext/dispatcher.py", line 270, in process_update | |
handler.handle_update(update, self) | |
File "/usr/lib/python3.6/site-packages/telegram/ext/messagehandler.py", line 123, in handle_update | |
return self.callback(dispatcher.bot, update, **optional_args) | |
File "/root/ehForwarderBot/plugins/eh_telegram_master/__init__.py", line 1130, in msg | |
return self.process_telegram_message(bot, update) | |
File "/root/ehForwarderBot/plugins/eh_telegram_master/__init__.py", line 1308, in process_telegram_message |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import config | |
import itchat | |
import sys | |
from binascii import crc32 | |
from plugins.eh_telegram_master import db | |
itchat.load_login_status('storage/eh_wechat_slave.pkl') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/plugins/eh_wechat_slave.py b/plugins/eh_wechat_slave.py | |
index 032608b..8318dd7 100644 | |
--- a/plugins/eh_wechat_slave.py | |
+++ b/plugins/eh_wechat_slave.py | |
@@ -687,8 +687,12 @@ class WeChatChannel(EFBChannel): | |
else: | |
raise EFBMessageTypeNotSupported() | |
- if isinstance(r, dict) and r.get('BaseResponse', dict()).get('Ret', -1) != 0: | |
- raise EFBMessageError(str(r)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Set the default policies to allow everything while we set up new rules. | |
# Prevents cutting yourself off when running from remote SSH. | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
# Flush any existing rules, leaving just the defaults | |
iptables -F |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import re | |
import subprocess | |
def updateGit(): | |
cwd = os.getcwd() | |
git = os.path.abspath(os.path.join(cwd, '.git')) |