Skip to content

ddxgtx/KO-ON-Bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KO-ON Bot

一个kook(原开黑啦)点歌机器人

linux部署方法

创建自己的机器人

https://developer.kookapp.cn/app/index

创建机器人后在机器人栏中获取token

获取网易云音乐token

配置Config

点击右上角fork到自己仓库 在自己仓库内编辑config.json文件

  1. Rename config.tmp.json to config.json
  2. Fill Keywords with value
    • token*: KOOK Bot token for bot *
    • default_platform* (Optional): Default Platform for Bot *
    • n_*: configs for Netease Music
    • b_*: configs for Bilibili
    • qq_enable: 1 or 0
    • q_*: configs for QQ Music
    • schedule_*: configs for scheduler(refer to the template)

Download

#git clone https://github.com/ddxgtx/KO-ON-Bot.git
git clone 你自己的仓库的地址
cd KO-ON-Bot
git clone https://github.com/Binaryify/NeteaseCloudMusicApi.git
git clone https://github.com/jsososo/QQMusicApi.git
git clone https://github.com/jsososo/MiguMusicApi.git

安装nodejs

curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs

安装依赖

cd NeteaseCloudMusicApi
npm install
cd QQMusicApi
npm install
cd MiguMusicApi
npm install

安装ffmpeg

sudo apt install ffmpeg

运行

sh run.sh

重要

部署完成后记得删除config.json文件,否则网易云账号信息可能会泄露

About

A Music Player for KOOK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.9%
  • Other 1.1%