Skip to main content

Nonebot2 HikariBot,支持战舰世界水表查询

Project description

Hikari

Hikari

战舰世界水表BOT

license pypi python QQ Chat Group

简介

战舰世界水表BOT,基于Nonebot2
水表人,出击!wws me recent!!!
如果觉得本插件还不错的话请点个Star哦~
Hoshino版插件

特色

  • 账号总体、单船、近期战绩
  • 全指令支持参数乱序
  • 快速切换绑定账号
  • 支持@快速查询

快速部署(作为独立bot)

  1. 下载notepad++Git并安装

  2. 下载Python版本需>3.8,或参考Hoshino版插件中使用Conda虚拟环境

  3. 执行下列两条命令安装nonebot2和hikari-bot插件

    pip install nb-cli
    pip install hikari-bot
    
  4. 打开一个合适的文件夹,鼠标右键——Git Bash here,输入以下命令克隆本Hoshino仓库

    git clone https://github.com/benx1n/HikariBot.git
    
  5. 编辑.env.prod文件

    API_TOKEN = xxxxxxxx #无需引号
    
  6. 打开终端,进入HikariBot文件夹下,输入下方命令运行bot

    nb run
    

    此时若没有报错,您可以打开http://127.0.0.1:8080/go-cqhttp/

    点击左侧添加账号,重启bot即可在网页上看到相应信息(大概率需要扫码)

快速部署(作为插件)

  1. 如果您已经有了一个基于Nonebot2的机器人(例如真寻),您可以直接
    pip install hikari-bot
    
  2. 在bot的bot.py中加入
    nonebot.load_plugin('hikari_bot')
    
  3. 在环境文件中加入API_TOKEN = xxxxxxxxxxxx

一般来说该文件为.env.dev

也有可能是.env.pord,具体需要看.env中是否有指定

如果啥都不懂,bot.py里,在nonebot.init()下面加上

config = nonebot.get_driver().config
config.api_token = "xxxxxxxxxxxx"

请点击页面顶部链接加群获取Token哦~

  1. 重启bot

更新

pip install --upgrade hikari-bot
install结束后会打印当前版本
您也可以通过pip show hikari-bot查看
如果没有更新到最新版请等待一会儿,镜像站一般每五分钟同步
(插件版无需下列两步)
cd HikariBot
git pull

感谢

Nonebot2
go-cqhttp
战舰世界API平台

开源协议

MIT

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hikari-bot-0.1.4.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

hikari_bot-0.1.4-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file hikari-bot-0.1.4.tar.gz.

File metadata

  • Download URL: hikari-bot-0.1.4.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Windows/10

File hashes

Hashes for hikari-bot-0.1.4.tar.gz
Algorithm Hash digest
SHA256 d964de1284dbba87bf313f2fab8cfaf3535f5292de74fc27080ac147a6834e08
MD5 300f57e5e779f4c369c6323669d1472d
BLAKE2b-256 ad07168bf15d1dfa4490dff158dfc49f7a164fd06749adab1937e78fbe05ac73

See more details on using hashes here.

Provenance

File details

Details for the file hikari_bot-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: hikari_bot-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Windows/10

File hashes

Hashes for hikari_bot-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1b38be07820f544a505c6d730f9cb190d92d629d809e491a0de4b9f7b0cd2504
MD5 a792f2b54a39e5a5fd7bcf9c32398fc2
BLAKE2b-256 977e4e474e74fbad4ff603daaa1040226d2732af3a5bd3c70651fa54b7922ccc

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page