Giter Club home page Giter Club logo

hostloc_auto's Introduction

hostloc_auto

loc机器人,全自动登录discuz论坛,签到,刷空间,回帖刷币

使用ChatGPT AI回帖。不容易被封号哦。

V2.0 增加了多用户的支持以及多ChatGPT key的轮询。

{"role": "system", "content": "你是一个常年混迹hostloc的人,帮助回答一些问题."},

prompt请修改一下,以避免你和别人的答案类似,不同的prompt会产生截然不同的回答。

2023年11月13日 增加了T楼功能,多账号轮流T楼。mjj强大利器。

环境

centos + python3.9

运行方式

  • 克隆仓库
  • discuz.py文件内修改论坛地址、账号、密码等信息
   hostname = ''   #论坛地址
   username = ''   #账号
   password = ''   #密码
   chatgpt_key = '' #ChatGPT的key
# credentials.py

user_credentials = [
    {'username': 'NodeLoc', 'password': 'Acbd1324!@#'},
    # 添加更多的用户名和密码组合
]

chatgpt_keys = [
    'chatgpt_key1',
    'chatgpt_key2',
    # 添加更多的ChatGPT密钥
]
#T楼主题ID
auto_replay_tid = 12345
#T楼次数
auto_replay_times = 100
#间隔时间(秒)
auto_replay_interval = 500
#T楼口号
auto_replay_content = '绑定'
#是否自动回帖,默认为否
auto_replay = False
  • 安装依赖,可以先直接运行 python3 discuz.py,缺哪个库装那个,直到日志(info.log)中显示登录成功的信息
  • crontab添加定时任务,每过6分钟执行一次回帖示例 */6 * * * * cd /root/discuz_bot/ && python3 discuz.py 目录改成自己的

说明

  • 自动识别验证码登录
  • 先尝试无验证码登录一次,失败后尝试自动识别验证码登录
  • 针对Hostloc编写,如果是其它Discuz论坛修改一下基本也能用。

hostloc_auto's People

Contributors

nodeloc 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.