Skip to content
/ am-check-in Public template

这是一个用来机场自动签到免费领取流量的自动脚本,一份代码支持多种运行环境,支持GitHub Actions、支持 Cloudflare Workers 和 Pages平台 的自动签到脚本,释放你的双手出去City Walk

License

Notifications You must be signed in to change notification settings

amclubs/am-check-in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

这是一个用来机场自动签到免费领取流量的自动脚本,一份代码支持多种运行环境,支持GitHub Actions、支持 Cloudflare Workers 和 Pages平台的自动签到脚本,释放你的双手出去City Walk

▶️ 新人YouTube 需要您的支持,请务必帮我点赞关注打开小铃铛十分感谢!!!
🎁 不要只是下载或Fork。请 follow 我的GitHub、给我所有项目一个 Star 星星(拜托了)!你的支持是我不断前进的动力! 💖
解锁更多技术请点击进入 YouTube频道【@AM_CLUB】【个人博客】 、TG群【AM科技 | 分享交流群】 、获取免费节点【进群发送关键字: 订阅】

一、GitHub Actions使用方法

① 复制仓库代码

  1. 把当前github的项目能过 use this template 复制创建到你的创建里。

② 设置 GitHub Actions 变量

  1. Settings -> secrets and variables -> Actions -> Secrets -> New repository secrets
  2. 设置对应的变量参数 DOMAIN、USERNAME、PASSWORD (详情参数看下面变量说明)
  3. (可选)设置TG通知参数 TG_TOKEN、TG_ID (详情参数看下面变量说明)

③ 设置定时任务时间

  1. 进入代码.github/workflows -> check-in-job.yml
  2. 修改定时任务时间 cron (推荐修改成其它时间)
on:
  schedule:
    - cron: '0 0 * * *'  # 每天 00:00 UTC 执行,调整为你需要的时间
  workflow_dispatch:  # 允许手动触发

二、Cloudflare使用方法

① 登录CF帐号,创建对应Workers & Pages项目,把 _worker.js 代码部署上去

② 设置 CF 变量

  1. 设置对应的变量参数 DOMAIN、USERNAME、PASSWORD (详情参数看下面变量说明)
  2. (可选)设置TG通知参数 TG_TOKEN、TG_ID (详情参数看下面变量说明)

③ 检查TG通知是否配置成功

  • 访问https://jc.amclubs.workers.dev/tg

④ 手动签到

  1. 示例TOKEN变量值: auto
  2. 访问https://jc.amclubs.workers.dev/auto

⑤ 设置自动签到

  1. 设置 > 触发事件 > +添加 > Cron 触发器
  2. 一周中的某一天 > 每天 > 00:00(推荐修改成其它时间) > 添加 即可;

三、变量说明

变量名 示例 必填 备注
JC_TYPE hongxingdl 机场标识 69云机场填:69yun69 红杏云机场填:hongxingdl
DOMAIN xxx.com 机场域名
USERNAME [email protected] 机场账户邮箱
PASSWORD pwd 机场账户密码
TOKEN auto 自动签到变量(Cloudflare方式才使用)
TG_TOKEN 6901234567:XXXXXXXXXX0qExxxhHxxbXXX 发送TG通知机器人的token
TG_ID 6901234567 接收TG通知的账户ID

四、Telegram获取token 和chat_id 的方式

1、加入 BotFather 机器人

点击网址https://t.me/BotFather ,打开与它的聊天界面。

2、创建 bot 并获取 token

  • 2.1 创建机器人 输入 /newbot 回车 显示:Alright, a new bot. How are we going to call it? Please choose a name for your bot.

  • 2.2 输入机器人的名称 比如输入 acmlubs_bot 回车 显示:Good. Now let’s choose a username for your bot. It must end in bot. Like this, for example: TetrisBot or acmlubs_bot.

  • 2.3 输入唯一的机器人用户名 格式为 acmlubs_bot 或 acmlubsbot 必须以bot结尾。 失败后显示:Sorry, xxxxxxxxxx 成功后显示: Done! Congratulations on your new bot. You will find it at t.me/acmlubs_bot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you’ve finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.

Use this token to access the HTTP API: 5xxx337:AAxxx3ApRGg Keep your token secure and store it safely, it can be used by anyone to control your bot.

  • 2.4 提取token 2.3中HTTP API 下面一行就是需要的token。

3、获取chat_id

  • 3.1先测试一下 浏览器中输入:https://api.telegram.org/bot{token}/getUpdates 回车 其中:{token}为2.4中获取的token,包括大括号。 显示:{ “ok”: true, “result”: [] } 如果显示error,说明有错误。

  • 3.2 获取chat_id

  • 3.2.1 在你生成的机器人中(本例为acmlubs_bot的机器人)随意输入一个词语,比如“Hello World”。如果获取群的,把(本例为acmlubs_bot的机器人)加入群,然后在群里发 hello @amclubs_bot 信息

  • 3.2.2 重新在浏览器中输入https://api.telegram.org/bot{token}/getUpdates 其中:{token}为2.4中获取的token,包括大括号。

  • 3.2.3 在显示的ok页中找到”chat”: {“id”: 1234567,”first_name”…….其中id后的数字即为需要的chat_id(如果是群的chat_id是负数来的)。

  • 3.3 curl 测试一下获取到的taken和chat_id 在vps中输入命令

curl -s -X POST https://api.telegram.org/bot{token}/sendMessage -d chat_id={chatId} -d text="Hello World" 其中:{token}、{chatId}分别为获取的token和chatid,包括大括号。

  • 3.4 成功与否 Telegrame客户端中的acmlubs_bot收到”Hello World”,就成功了!

check-in

[点击展开] 赞赏支持 ~🧧 *我非常感谢您的赞赏和支持,它们将极大地激励我继续创新,持续产生有价值的工作。*
  • USDT-TRC20: TWTxUyay6QJN3K4fs4kvJTT8Zfa2mWTwDD
  • TRX-TRC20: TWTxUyay6QJN3K4fs4kvJTT8Zfa2mWTwDD

TRC10/TRC20扫码支付

免责声明:

  • 1、该项目设计和开发仅供学习、研究和安全测试目的。请于下载后 24 小时内删除, 不得用作任何商业用途, 文字、数据及图片均有所属版权, 如转载须注明来源。
  • 2、使用本程序必循遵守部署服务器所在地区的法律、所在国家和用户所在国家的法律法规。对任何人或团体使用该项目时产生的任何后果由使用者承担。
  • 3、作者不对使用该项目可能引起的任何直接或间接损害负责。作者保留随时更新免责声明的权利,且不另行通知。

About

这是一个用来机场自动签到免费领取流量的自动脚本,一份代码支持多种运行环境,支持GitHub Actions、支持 Cloudflare Workers 和 Pages平台 的自动签到脚本,释放你的双手出去City Walk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published