Giter Site home page Giter Site logo

sjkcdpc / multi_function_github Goto Github PK

View Code? Open in Web Editor NEW

This project forked from longbig/multi_function_github

0.0 0.0 0.0 127 KB

各种脚本工具集合,使用方法博客地址:https://longbig.github.io/

License: Apache License 2.0

Shell 3.31% Java 95.91% Dockerfile 0.79%

multi_function_github's Introduction

multi_function_github

运行环境:Java8,maven

  • ChatGPT接入企业微信成为聊天机器人
  • 羊了个羊无限通关,通关教程在公众号卷福同学 最新文章里,所用工具包在公众号里发送羊了个羊获取
  • 有脚本运行问题可公众号内询问

公众号二维码

脚本使用

ChatGPT 3.5接入企业微信

  • 修改application.properties文件的chatgpt开头 和wechat开头的配置,配置内容看注释
  • 默认访问超时时间是30s,如需修改,可自行修改OkHttpUtilsDEFAULT_TIME_OUT的值
  • 使用教程:ChatGPT3.5接入企业微信且支持连续对话
  • 发送开始连续对话进入连续对话模式,注意连续对话模式下,chatGPT账号额度消耗是累加(每次发消息,会累加这次和过去所有对话的额度消耗)
  • 发送结束连续对话关闭连续对话模式
  • 可修改application.properties文件里的chatgpt.flow.num配置,自行修改最大对话次数(不建议太大,官方限制的消息最大长度是4096 token,大概20次对话之后就会超了)

其他脚本使用

  • 羊了个羊:代码在YangService下,启动程序后,浏览器访问http://localhost:8080/doc.html#/default/yang-service/getYangUsingGET, 在参数cookie里写入t=【替换为抓包工具抓到的t值】,直接请求即可,抓包教程见公众号最新文章

  • 京东脚本:多个账号使用时,修改resources目录下的jd_cookie.txt文件,每行为pt_key,pt_pin的格式

  • 掘金脚本:修改application.properties文件的juejin.Cookie为你的掘金cookie

  • 运行MultiFunctionApplication类下的main函数启动项目

  • 项目启动后,浏览器打开http://localhost:8080/doc.html#/default/jd-service/getJDUsingGET 可调试签到任务,入参和任务关系为:

    • 1 : 京东每日签到任务
    • 2 : 摇京豆签到
    • 3 : 抽京豆
    • 4 : plus会员签到
    • 5 : 掘金每日签到
    • 6 : 掘金每日抽奖

Docker打包方式

  • 在自己电脑或者服务器上建个jd_cookie.txt文件,里面放多个账号的cookie值,格式为pt_key,pt_pin
  • 修改docker-compose.yml文件下的volumes变量值,替换为上一步txt文件的绝对路径,Mac电脑示例:/home/admin/opt:/opt
  • 运行maven package将代码构建为jar文件
  • 运行docker build -t jdou:v1.1 ./将jar包构建为docker镜像,名称为jdou:v1.1,放在当前路径下
  • 运行docker-compose up运行上一步构建的镜像即可

更新

  • 2023.03.05 更新,使用GPT3.5接入企业微信,且新增连续对话功能
  • 2023.02.27 修复ChatGPT接入企业微信未设置超时时间的bug
  • 2023.02.22 修复ChatGPT接入企业微信agentId的bug
  • 2023.02.18 增加ChatGPT接入企业微信,成为聊天机器人代码
  • 2022.10.15 增加短信轰炸示例代码
  • 2022.09.18 增加羊了个羊微信小程序通关调用
  • 2022.09.10 修改任务脚本,支持多个账号的签到
  • 2022.09.04 增加掘金自动签到任务和抽奖任务
  • 2022.05.15 增加Dockerfile、docker-compose文件,用于docker构建镜像和运行镜像
  • 2022.05.01 新增自动签到定时任务:摇京豆签到、抽京豆任务、plus会员签到。接口文档可视化界面
  • 2022.04.27 新增服务探活接口和部署脚本deploy.sh,可用于阿里云云效自动化部署 具体部署步骤见博客:2分钟教你部署2048小游戏到云服务器

multi_function_github's People

Contributors

longbig avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.