Giter Site home page Giter Site logo

hosbotmanagerweb's Introduction

简介

基于一个叫hoshinoV2服务开关网页版.zip(作者 @shewinder ) 改出来的玩意儿,web管理hoshino的service开关的东西。

安装

  1. 前略装好hoshinobot。步骤参考hoshino文档

  2. 整个bot_manager_web目录塞进hoshino/modules目录下面。

  3. hoshino/config/__bot__.py文件中添加模块引用。MODULES_ON 这个字典中添加一行'bot_manager_web'

  4. 修改配置信息(密码请务必修改,避免造成信息泄露!)

BOT_MANAGER_WEB_PASSWORD

  • 环境变量。环境变量中BOT_MANAGER_WEB_PASSWORD值设置为想要的密码。
  • 如果不想用环境变量,则可以修改hoshino/modules/bot_manager_web/view.py中的PASSWORD后面值修改成你想要的密码。

PUBLIC_ADDRESS

这个一般不用管,直接引用的hoshino的配置。如果要修改的话

  • 环境变量。环境变量中PUBLIC_ADDRESS值设置为想要的密码。
  • 如果不想用环境变量,则可以修改hoshino/modules/bot_manager_web/reply.py中的PUBLIC_ADDRESS后面值修改成你想要的url。

使用

访问https://bcr.yourdomain.com:<your port>/manage

输入上面文件里设定的密码登录(至于为啥没有用户名,反正只有一个人会去登录的东西要什么用户名!)

然后是进入服务里管理群功能开关,还是进入群列表管理服务功能开关,正常人都能看懂吧。

PS: 注销按钮我也不知道为啥要存在,想了想也没啥意义就没做了。

PPS: 还有部分垃圾文件懒得看了,体积也不算太过夸张懒得抽了,有人有空可以抽一抽。

PPPS:友情提示!使用云服务器请确认对应端口在云服务器中是否开放!使用windows服务器请在服务器的防火墙中确认对应端口是否开放!

PPPPS: 端口请查看你的hoshine的文件 config/__bot__.py 里的PORT参数设置的是多少。

图示

图1 图2 图3 图4 图5

hosbotmanagerweb's People

Contributors

cydxdianxian avatar lqbing 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.