forked from snxraven/DiscordJS-v14-Template
Compare commits
1 Commits
master
...
lauraorchi
Author | SHA1 | Date | |
---|---|---|---|
560e62fa53 |
30
README.md
30
README.md
@ -1,10 +1,12 @@
|
|||||||
# CatalystMoon Base Code
|
# Discord-Linux Discord.JS v14 Base Template
|
||||||
|
|
||||||
New era, new branding.
|
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.
|
||||||
|
|
||||||
Structure:
|
Structure:
|
||||||
|
|
||||||
**commands/Info** - This folder contains commands
|
**commands** - This folder contains commands
|
||||||
|
|
||||||
**event** - This folder contains files related to discord.js events. (Like "ready", "interactionCreate")
|
**event** - This folder contains files related to discord.js events. (Like "ready", "interactionCreate")
|
||||||
|
|
||||||
@ -12,26 +14,22 @@ Structure:
|
|||||||
|
|
||||||
**index.js** - This is the main file to run the bot.
|
**index.js** - This is the main file to run the bot.
|
||||||
|
|
||||||
# Usage
|
|
||||||
|
|
||||||
1) Clone this repo: ```git clone https://git.codingvm.codes/LauraOrchid/CatalystMoon.git```
|
|
||||||
|
|
||||||
2) ```cd CatalystMoon```
|
1) Use ```npm i ```
|
||||||
|
|
||||||
3) Use ```npm init ```
|
2) Create a .env file ``` touch .env```
|
||||||
|
|
||||||
4) Install dependencies: ```npm install discord.js dotenv glob format-duration```
|
|
||||||
|
|
||||||
5) ```nano .env``` and put this:
|
|
||||||
|
|
||||||
|
3) Edit .env
|
||||||
```
|
```
|
||||||
TOKEN="your bot token here"
|
TOKEN = token
|
||||||
```
|
```
|
||||||
|
|
||||||
4) ```nano ./handler/index.js``` and change "GUIDIDHERE" to your Discord Server's Guild ID
|
4) Go to Handler -- > index.js and change "GUIDIDHERE" to your Discord Server's Guild ID
|
||||||
|
|
||||||
5) Go into https://discord.com/developers/applications and enable all 3 intents (presence, members, and message content) in your application.
|
5) Go into https://discord.com/developers/applications and enable Privileged Intents.
|
||||||
|
|
||||||
6) Run the bot: ```node index.js```
|
6) Run the bot ```node index.js```
|
||||||
|
|
||||||
Have fun! -Laura 💖
|
|
||||||
|
Want to make this better? Issue a pull request!
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
const { EmbedBuilder } = require("discord.js");
|
const { EmbedBuilder } = require('discord.js');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "hello",
|
name: "ping",
|
||||||
description: "Say hi to Tiffany!",
|
description: "Returns websocket latency",
|
||||||
|
|
||||||
run: async (client, interaction) => {
|
run: async (client, interaction) => {
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setColor("#0CE2FA")
|
.setColor("#FF0000")
|
||||||
.setTitle("🌼 Hi friend!")
|
.setTitle("🏓 Pong!")
|
||||||
.setDescription(`I'm Tiffany Lynch, 16 year old from Jakarta. Likes ponies, flowers, and tech.\nMy source code: https://git.codingvm.codes/LauraOrchid/CatalystMoon\nDonate to me: https://saweria.co/TiffanyLynch`)
|
.setDescription(`Latency : ${client.ws.ping}ms`)
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
|
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
|
||||||
interaction.followUp({ embeds: [embed] });
|
interaction.followUp({ embeds: [embed] });
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
const { EmbedBuilder } = require('discord.js');
|
|
||||||
const decodeTime = require('format-duration');
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
name: "status",
|
|
||||||
description: "Tiffany's Health Status.",
|
|
||||||
|
|
||||||
run: async (client, interaction) => {
|
|
||||||
const embed = new EmbedBuilder()
|
|
||||||
.setColor("#FA0CF2")
|
|
||||||
.setTitle("💜 Tiffany's Story!")
|
|
||||||
.setDescription(`Latency: ${client.ws.ping}ms\nUptime: ${decodeTime(client.uptime)}`)
|
|
||||||
.setTimestamp()
|
|
||||||
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
|
|
||||||
interaction.followUp({ embeds: [embed] });
|
|
||||||
},
|
|
||||||
};
|
|
17
package.json
Normal file
17
package.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "dlinuxtemplatev14",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"discord.js": "^14.0.3",
|
||||||
|
"dotenv": "^16.0.0",
|
||||||
|
"glob": "^7.2.0"
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user