Discord.js Bot for Logs (now with a website!)
For This project, you will need a website host and a machine that can run a Node.Js Bot. These do not have to be hosted within the same machine.
- Install Node.Js in the machine that will be running the bot
- Install all the pre-requisites for Enmap in the same machine found here
- Create a bot inside Discord's Developer Portal
Now you should be ready to get started 👌
- Move the contents of the Website folder into your main directory of your website.
- Open to the up.php and edit
$secret_key = "make a key here";
with a key. You'll need it later so make sure it's saved. - Move the contents of the Discord Bot folder into the machine you'll be using to host the bot.
- Once the files have been transferred, open up the config.json and replace the contents with the information it ask's for.
- The last thing needed to be filled inside the config.json in is they key you made in step 2.
- Open up the bot folder in the command prompt and run this command:
npm i
- You're done. Start the bot with:
node App.js
- You can look into pm2 to keep your bot up 24/7
If you get any error make sure everything is filled in properly 🙂
- logMe: starts the logs for the channel.
- Basic Website ✅
- Website Embeds
- Website Markdown
- Multi-line support
- Ping support
- Chat information (like server, channel, etc)