A Discord bot designed to manage and dispense links.
Make sure you have the following installed:
-
Clone the repository:
git clone https://github.com/NCCoder2/Dispenser.git
-
Navigate to the project folder:
cd Dispenser -
Install dependencies:
npm install
-
Open the
config.jsonfile and configure the following settings:db.uri: MongoDB connection URI.bot.token: Discord bot token.bot.client_id: Discord bot client ID.bot.guild_id: Discord guild ID.- Fill in all the blank/non-filled values in the config.json as well.
-
Start the bot:
node index.js
If you've followed all the directions correctly, you should see messages indicating MongoDB and Discord Bot connection.
-
Open the
./links/free.txtand./links/premium.txtfiles. -
Add links to the respective files, each link on a new line.
-
Restart the bot:
node index.js
The bot will read the links from the files and add them to the database.
MIT LICENSE in the LICENSE file