Discord bot for playing Bilibili video
On macOS:
brew install ffmpeg
On Debian-Linux:
apt-get install ffmpeg
Make sure ffmpeg executable is in system PATH
environment variable
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/
Make sure mongod
service is running before starting the bot.
npm install
Create a json file under root directory named botconfig.json
:
{
"discordToken": "<YOUR TOKEN HERE>",
"mongoUri": "mongodb://localhost:27017 (or your custom URI)"
}
npm start