Skip to content

Commit

Permalink
Your commit message here
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles-Hello committed Nov 17, 2023
1 parent 0f0e48b commit cf57854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ _✨ 支持nonebot2调用 ✨_
如果你有想法、有能力,欢迎:
- [提交 Issue](https://github.com/Charles-Hello/Tg_User_Client/issues)
- [提交 Pull request](https://github.com/Charles-Hello/Tg_User_Client/pulls)
- [在交流群内进行反馈](https://t.me/stduynonebot2)
- [在交流群内进行反馈](https://t.me/StudynoneBot2)



Expand Down
4 changes: 3 additions & 1 deletion tgbot_client/action_manager/bot_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def websocket_handler(websocket):
class MyBot:
def __init__(self, config: Config):
self.username = config.tgusername
self.config = Config()
self.config = config
if config.tg_proxy:
if config.tg_proxy_mode == "socks5":
if not config.tg_proxy_user:
Expand Down Expand Up @@ -187,5 +187,7 @@ async def _run(self):

# 创建 MyBot 实例
env = Env()

config = Config(_common_config=env.dict())
print(config)
bot = MyBot(config)

0 comments on commit cf57854

Please sign in to comment.