- Clone repository to local directory
- Install dependencies (
npm install
) - Copy this example and fill it in:
{
"botToken": "Discord Bot OAuth2 Token (https://discordapp.com/developers/applications/me)",
"nightPing": true,
"firebaseConfig": {
"apiKey": "Firebase API Key",
"authDomain": "project.firebaseapp.com",
"databaseURL": "https://project.firebaseio.com",
"projectId": "project",
"storageBucket": "project.appspot.com",
"messagingSenderId": "Firebase Messaging Sender Id"
},
"errorWebhook": ["Discord Webhook Id", "Discord Webhook Token"]
}
- Save file to a cloud service like myjson and supply link in src/mountainz.js
- Run the bot (
npm start
) [You can also runnpm test
which lints and then runs nodemon]
- discord.js: Discord API
- firebase: backend database
- ffmpeg & node-opus: playing audio
If you would like to add to anything, feel free to submit a pull request! You can contact me if you'd like on Discord at Kalissaac#8199
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.