2022-07-23 17:30:05 -04:00
|
|
|
# LauraXD Base Code
|
2022-07-22 18:09:13 -04:00
|
|
|
|
2022-07-23 08:21:10 -04:00
|
|
|
Only 3 dependencies required to run this bot!
|
|
|
|
|
|
|
|
Message intents are NOT supported in this bot, this is due to the verification that Discord is enabling.
|
|
|
|
|
2022-07-22 18:09:13 -04:00
|
|
|
Structure:
|
|
|
|
|
2022-07-23 17:30:05 -04:00
|
|
|
**commands/Info** - This folder contains commands
|
2022-07-22 18:09:13 -04:00
|
|
|
|
|
|
|
**event** - This folder contains files related to discord.js events. (Like "ready", "interactionCreate")
|
|
|
|
|
2022-07-22 18:12:47 -04:00
|
|
|
**handler** - This folder contains files that read the commands folders contents.
|
2022-07-22 18:09:13 -04:00
|
|
|
|
|
|
|
**index.js** - This is the main file to run the bot.
|
|
|
|
|
2022-07-23 17:30:05 -04:00
|
|
|
# Usage
|
2022-07-22 18:09:13 -04:00
|
|
|
|
2022-07-23 17:30:05 -04:00
|
|
|
1) Clone this repo: ```git clone https://git.codingvm.codes/LauraOrchid/LauraXD.git```
|
2022-07-22 18:09:13 -04:00
|
|
|
|
2022-07-23 17:30:05 -04:00
|
|
|
2) ```cd lauraxd```
|
2022-07-22 18:09:13 -04:00
|
|
|
|
2022-07-23 17:30:05 -04:00
|
|
|
3) Use ```npm init ```
|
|
|
|
|
|
|
|
4) Install dependencies: ```npm install discord.js dotenv glob format-duration```
|
|
|
|
|
|
|
|
5) ```nano .env``` and put this:
|
2022-07-22 18:09:13 -04:00
|
|
|
|
|
|
|
```
|
2022-07-23 17:30:05 -04:00
|
|
|
TOKEN="your bot token here"
|
2022-07-22 18:09:13 -04:00
|
|
|
```
|
|
|
|
|
2022-07-23 17:30:05 -04:00
|
|
|
4) ```nano lauraxd/handler/index.js``` and change "GUIDIDHERE" to your Discord Server's Guild ID
|
2022-07-23 08:09:20 -04:00
|
|
|
|
2022-07-23 17:30:05 -04:00
|
|
|
5) Go into https://discord.com/developers/applications and enable all 3 intents (presence, members, and message content) in your application.
|
2022-07-22 18:09:13 -04:00
|
|
|
|
2022-07-23 17:30:05 -04:00
|
|
|
6) ```cd ../..``` (go back to root path of the bot directory) and run the bot: ```node index.js```
|
2022-07-22 18:09:13 -04:00
|
|
|
|
2022-07-23 17:30:05 -04:00
|
|
|
Have fun! -Laura 💖
|