-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f38f9de
commit 2c79431
Showing
9 changed files
with
366 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# Git | ||
.git | ||
.gitignore | ||
.gitattributes | ||
|
||
|
||
# CI | ||
.codeclimate.yml | ||
.travis.yml | ||
.taskcluster.yml | ||
|
||
# Docker | ||
docker-compose.yml | ||
Dockerfile | ||
.docker | ||
.dockerignore | ||
|
||
# Byte-compiled / optimized / DLL files | ||
**/__pycache__/ | ||
**/*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
/docs | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Virtual environment | ||
.env | ||
.venv/ | ||
venv/ | ||
|
||
# PyCharm | ||
.idea | ||
|
||
# Python mode for VIM | ||
.ropeproject | ||
**/.ropeproject | ||
|
||
# Vim swap files | ||
**/*.swp | ||
|
||
# VS Code | ||
.vscode/ | ||
|
||
.pre-commit-config.yaml | ||
config.yaml.example | ||
config.yaml | ||
/.github | ||
/tests | ||
.DS_Store | ||
/.ruff_cache | ||
README.md |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM python:3.9-alpine3.18 | ||
LABEL authors="Cassius0924" | ||
|
||
WORKDIR /wechatter | ||
|
||
ADD . /wechatter | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# 使 loguru 支持颜色输出 | ||
ENV LOGURU_COLORIZE=True | ||
# 设置日志级别 | ||
ENV WECHATTER_LOG_LEVEL=INFO | ||
|
||
EXPOSE 4000 | ||
|
||
CMD ["python3", "-m", "wechatter"] |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# 微信机器人配置文件 | ||
# 配置说明:https://github.com/Cassius0924/WeChatter?tab=readme-ov-file#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6 | ||
|
||
|
||
# Wechatter | ||
wechatter_port: 4000 | ||
|
||
|
||
# WX Webhook | ||
# Docker 部署时,wx_webhook_base_api 需要配置为 wxbotwebhook,端口需要与 docker-compose.yml 中的端口一致 | ||
wx_webhook_base_api: http://wxbotwebhook:3001 | ||
wx_webhook_recv_api_path: /receive_msg | ||
wx_webhook_token: "your_wx_webhook_token" | ||
|
||
|
||
# Admin | ||
admin_list: [ "文件传输助手", "AdminName" ] | ||
admin_group_list: [ "AdminGroupName" ] | ||
bark_url: your_bark_url | ||
|
||
|
||
# Bot | ||
bot_name: Cassius | ||
|
||
|
||
# Chat | ||
command_prefix: / | ||
need_mentioned: False | ||
|
||
|
||
# LLM | ||
openai_base_api: https://api.openai.com | ||
openai_token: sk_your_openai_token | ||
|
||
|
||
# GitHub Webhook | ||
github_webhook_enabled: True | ||
github_webhook_api_path: /webhook/github | ||
github_webhook_receive_person_list: [ ] | ||
github_webhook_receive_group_list: [ ] | ||
|
||
|
||
# Message Forwarding:消息转发 | ||
message_forwarding_enabled: False | ||
message_forwarding_rule_list: | ||
- from_list: [ "%ALL" ] | ||
from_list_exclude: [ "You" ] | ||
to_person_list: [ "You" ] | ||
to_group_list: [ ] | ||
- from_list: [ "Jay", "Tom" ] | ||
to_person_list: [ "Cassius" ] | ||
to_group_list: [ "Team" ] | ||
|
||
|
||
# 公众号消息提醒 | ||
official_account_reminder_enabled: True | ||
official_account_reminder_rule_list: | ||
- oa_name_list: [ "央视新闻", "人民日报" ] | ||
to_person_list: [ "You" ] | ||
to_group_list: [ "Team" ] | ||
|
||
|
||
# Task Cron:定时任务 | ||
# 配置说明:https://github.com/Cassius0924/WeChatter/blob/master/docs/task_cron_config_detail.md | ||
all_task_cron_enabled: True | ||
task_cron_list: | ||
- task: "每天早上8点发送天气预报和知乎热搜" | ||
enabled: True | ||
cron: | ||
hour: "8" | ||
minute: "0" | ||
second: "0" | ||
timezone: "Asia/Shanghai" | ||
commands: | ||
- cmd: "weather" | ||
args: [ "广州" ] | ||
to_person_list: [ "You" ] | ||
- cmd: "zhihu-hot" | ||
to_group_list: [ "Team" ] | ||
|
||
|
||
# Custom Command Key: 自定义命令关键词 | ||
# 配置说明:https://github.com/Cassius0924/WeChatter/blob/master/docs/custom_command_key_config_detail.md | ||
custom_command_key_dict: | ||
gpt4: [ ">" ] | ||
bili-hot: [ "bh" ] | ||
play: [ "p" ] | ||
weather: [ "w", "温度" ] | ||
|
||
|
||
# Discord Message Forwarding:Discord 消息转发 | ||
discord_message_forwarding_enabled: False | ||
discord_message_forwarding_rule_list: | ||
- from_list: [ "%ALL" ] | ||
from_list_exclude: [ "" ] | ||
webhook_url: "your_discord_webhook_url" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: "3.8" | ||
services: | ||
wxbotwebhook: | ||
image: dannicool/docker-wechatbot-webhook | ||
container_name: wxbotwebhook | ||
ports: | ||
- "3001:3001" | ||
environment: | ||
- LOGIN_API_TOKEN=1213abac | ||
- ACCEPT_RECVD_MSG_MYSELF=true | ||
- RECVD_MSG_API=http://wechatter:4000/receive_msg | ||
|
||
wechatter: | ||
image: cassius0924/wechatter:v0.5.10 | ||
container_name: wechatter | ||
ports: | ||
- "4000:4000" | ||
volumes: | ||
- ./compose_config.yaml.example:/wechatter/config.yaml | ||
environment: | ||
- WECHATTER_LOG_LEVEL=INFO | ||
depends_on: | ||
- wxbotwebhook |
Oops, something went wrong.