Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhalstead/simple-discord-bot
This is just a Simple Discord Bot that allows you to create commands using plugins.
https://github.com/nhalstead/simple-discord-bot
bot discord opensource simple-bot
Last synced: 13 days ago
JSON representation
This is just a Simple Discord Bot that allows you to create commands using plugins.
- Host: GitHub
- URL: https://github.com/nhalstead/simple-discord-bot
- Owner: nhalstead
- License: unlicense
- Created: 2017-10-02T21:21:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T05:03:39.000Z (about 2 years ago)
- Last Synced: 2024-05-28T14:59:45.720Z (8 months ago)
- Topics: bot, discord, opensource, simple-bot
- Language: JavaScript
- Homepage:
- Size: 514 KB
- Stars: 9
- Watchers: 4
- Forks: 11
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple-Discord-Bot
This is just a Simple Discord Bot that runs on Node JS.
The bot is open source as it's on Github for everyone to use and modify.
## Getting Started
To get the bot up and running download the source code and following the next few steps.
1. Install the required packages
```bash
npm install
```
2. Copy the file `.env.example` and name it `.env`
3. Fill all values in the `.env` file
- You need to go to the [Discord Developer Portal](https://discord.com/developers/applications) and create a bot (if you don't have one yet)
- Goto the "General Information" page and copy the "Application ID" and paste it as the `DISCORD_APPID`.
- Goto the "Bot" page and click on _Copy_ found in the Token area, then paste that as the `DISCORD_TOKEN`.
4. Ready to start programming a bot!
To start the bot you can run `npm start`, wait a moment till you see _Authentication Complete!_## Configuration
To configure the bot you can use a dot env file for setup of your Bot token.
**Do not commit your secrets to GitHub! Use the `.env` file!**## How to use
Everything in this project uses the concept of "plugins" for the commands.
You can create and add your own commands by creating a new JS file in the "plugins" (found in src/plugins) folder.
The file gets automatically loaded when the server starts up.
Be sure to take a look at the other plugins that already in this project to see how to create a new one.