Ever wanted to use discord as a database? No? ok...
This library can be used in different ways.
if you have already made a bot, you can initialize the DatabaseManager
object with your Client
object and the guild that you want to use as your database
const myBot = new Discord.Client();
const db_manager = new DatabaseManager(myBot, myDatabaseGuild);
if you have not made a bot, i made one for u 😃 To set it up:
- Create a bot in the discord developer portal
- Create a new server that you want to use as a database
- Invite the bot to the server as admin
- Create a file
.env
in the root directory (right next tobot.js
) and put your bot token inside:
TOKEN=your-bot-token-here
- All done, just run the bot using
npm start
and you are good to go.