Skip to content

iamtang/ContributeBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ContributeBot

使用定时任务执行脚本,刷github的contributions,不至于一片白。

图片描述

使用教程

  • 新建.env文件,参考模板.env.example
  • 创建access token
  • access token 给对应的仓库权限,建议使用私有仓库
  • 执行 crontab -e 末尾添加 30 11 * * * python3 /项目路径/main.py > /dev/null 2>&1 # 每天11点半执行代码

github操作支持,默认使用update file,有需要调整自行修改代码

  • update file
  • issue create
  • issue comment
  • issue comment delete
  • issue close
# .env.example
GITHUB_TOKEN="github access token" # 个人访问令牌
USERNAME="github username" # github用户名
REPO="repo" # 仓库名
RANGE="0-6" # 0-6随机取值当push次数

cron

┌───────────── 分钟 (0 - 59)
│ ┌───────────── 小时 (0 - 23)
│ │ ┌───────────── 日 (1 - 31)
│ │ │ ┌───────────── 月 (1 - 12 或 JAN-DEC)
│ │ │ │ ┌───────────── 星期 (0 - 6 或 SUN-SAT)
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
* * * * *
符号 描述 举例
* 任意值 * * * * * 每天每小时每分钟
, 值分隔符 1,3,4,7 * * * * 每小时的 1 3 4 7 分钟
- 范围 1-6 * * * * 每小时的 1-6 分钟
/ */15 * * * * 每隔 15 分钟

About

ContributeBot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages