Skip to content

Discord bot for playing Bilibili video

Notifications You must be signed in to change notification settings

Sleepytt1210/bili-bot

This branch is 125 commits ahead of JyaouShingan/bili-bot:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9bae1fa · Aug 31, 2024
Aug 31, 2024
Aug 31, 2024
Feb 28, 2024
Aug 13, 2019
Aug 13, 2019
Aug 31, 2024
Feb 28, 2024
Feb 28, 2024
Feb 28, 2024
Oct 26, 2020
Feb 27, 2024
Feb 27, 2024
Aug 22, 2019
Feb 25, 2023

Repository files navigation

Bili Bot

A Discord bot that plays from BiliBili

*Forked from bili-bot

Installation

1. Install NodeJs version >= v16.6.x

2. Install FFMpeg library

macOS:

brew install ffmpeg

Debian-Linux:

apt-get install ffmpeg

Windows:

Refer to https://github.com/m-ab-s/media-autobuild_suite

Make sure ffmpeg executable is in system PATH environment variable

3. Install and run MongoDB

On macOS:

brew tap mongodb/brew
brew install mongodb-community
brew services start mongodb-community

On Debian-Linux:

Refer to https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/

On Windows:

Create a new atlas cluster ->

Make sure mongodb service is running before starting the bot.

4. Install dependency

npm install

If Sodium doesn't work, use libsodium-wrappers instead

Configuration

Create a file under root directory named .env:

DiscordToken=your_token
MONGO_URI=mongodb_url
DB_NAME=database_name
YTApiKey=youtube_API_Key

Run

Directly

npm start

Docker

docker compose up --build -d

Further Reading

About

Discord bot for playing Bilibili video

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.9%
  • Other 1.1%