Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 #2

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

1 #2

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: 0 */3 * * *


permissions:
contents: read
Expand All @@ -22,10 +19,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.8"
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -38,4 +35,5 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: python main.py
run: |
pytest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# 女朋友专属公众号

18 changes: 9 additions & 9 deletions config.conf
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
[info]
#开始在一起的日期,格式参考 2022-06-24
start_date=2022-06-24
start_date=2018-06-08
#你女朋友所在的城市,写城市名或省份名或者所在的区 如 "云南"或者"昆明"或者"五华区"
city1=昆明
city1=株洲
#你女朋友的家乡,写城市名或省份名或者所在的区 如 "云南"或者"昆明"或者"五华区"
city2=腾冲
city2=株洲
#你女朋友的生日,注意格式只写*月*日 如:"07-21"
birthday_lover=07-21
birthday_lover=05-28
#你的生日,注意格式只写*月*日 如:"07-21"
birthday_my=05-04
birthday_my=11-17
#以下为微信测试号的参数,在申请时会显示
app_id=wxbc471cb
app_secret=c4149ff570
app_id=wx988d424668e5472d
app_secret=201fdc67759ff7b50d56bb916210cbe1
#消息模板ID,在微信测试号中添加模板会自动生成ID
template_id=o_H3x859-mrYPv2ynphC
template_id=roOZzH_3W6jOj4_tKDrHw6qUpVjKQTGr57cZ9-mU578
#接收消息的用户ID,让你的女朋友扫微信测试号的二维码,获取微信用户ID
user_id=oB3
user_id=oycEm6KUQVWto5EWwy9jpMTcl5fs
#如有多个女朋友或者女朋友有多个微信,请使用以下格式,","隔开
#user_id=****,***,*****

Expand Down
5 changes: 1 addition & 4 deletions tmp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
今日天气:{{weather1.DATA}}
当前温度:{{temperature1.DATA}}
{{sid.DATA}}
距离领导的生日还有{{birthday_lover.DATA}}天
距离秘书的生日还有{{birthday_my.DATA}}天
在一起的第{{start_date.DATA}}天
距离元旦还有{{yd.DATA}}天
距离春节还有{{cj.DATA}}天
===家乡:{{city2.DATA}} 天气:{{weather2.DATA}}===
今日评分最高电影:{{mv.DATA}}
每日一句:{{words.DATA}}