2022-08-20 23:01:47 -04:00
|
|
|
# CatalystMoon Base Code
|
2022-07-22 18:09:13 -04:00
|
|
|
|
2022-08-20 23:01:47 -04:00
|
|
|
New era, new branding.
|
2022-07-23 08:21:10 -04:00
|
|
|
|
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-08-20 23:01:47 -04:00
|
|
|
1) Clone this repo: ```git clone https://git.codingvm.codes/LauraOrchid/CatalystMoon.git```
|
2022-07-22 18:09:13 -04:00
|
|
|
|
2022-08-20 23:01:47 -04:00
|
|
|
2) ```cd CatalystMoon```
|
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 19:33:25 -04:00
|
|
|
4) ```nano ./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 19:33:25 -04:00
|
|
|
6) 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 💖
|