Skip to content
/ hsn Public
forked from pcrbot/hsn

Hoshino的快捷搬运插件助手

License

Notifications You must be signed in to change notification settings

Oyuanchu/hsn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hoshino-cli

安装方法

Windows的简单粗暴方法:下载release中的对应文件,改名为hsn.exe扔到C:\Windows\System32 (只要给hsn.exe添加到环境变量Path路径就行了)

Linux的简单粗暴方法:下载release中的对应文件,改名为hsn扔到\bin文件夹下 (只要有环境变量就行了)

使用方法

设置CLI

hsn set

  • -p (--path) : 填写Hoshino工程目录的绝对路径,或者填写 . 将使用当前目录
  • -i (--image) : 设置使用Github的镜像源地址,默认为 https://github.com
  • --pip : 设置安装python依赖工具,默认为 pip3

例如

  • hsn set --path=/root/hoshino
  • hsn set -i=https://github.com
  • hsn set --pip="python38 -m pip"

可用镜像源

  • https://hub.fastgit.org
  • https://github.com.cnpmjs.org
  • https://github.bajins.com
  • https://github.rc1844.workers.dev

获取可用插件列表

hsn list

获取已适配插件列表及其序号

安装Hoshino插件

hsn install

请确保安装了git, python

例如 hsn install music

可以通过序号安装

例如 hsn install 1

更新CLI

hsn update

生成发布插件的json文件

hsn export [plugin name]

然后填写仓库地址,所需依赖和资源文件就行了

bucket文件夹保存了已适配插件的信息, 你可以向本项目提交issue或pr来发布您的插件到hsn插件仓库 插件适配指南

About

Hoshino的快捷搬运插件助手

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%