Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
849f5e7673 | |||
e67a5b0f5a | |||
3b9f2cccb7 | |||
523a595dcc | |||
f33bd44ab5 | |||
041778e21e | |||
b37159af4e | |||
bb68b76adf | |||
ed608d52b8 | |||
cc5aa9cff0 | |||
5a1b804e3a | |||
f87de17119 | |||
31c53c9ae0 | |||
aa77f8c347 | |||
3baacd92dd | |||
526c2c5a53 |
30
README.md
30
README.md
@ -1,12 +1,10 @@
|
|||||||
# Discord-Linx Discord.JS v14 Base Template
|
# CatalystMoon Base Code
|
||||||
|
|
||||||
Only 3 dependencies required to run this bot!
|
New era, new branding.
|
||||||
|
|
||||||
Message intents are NOT supported in this bot, this is due to the verification that Discord is enabling.
|
|
||||||
|
|
||||||
Structure:
|
Structure:
|
||||||
|
|
||||||
**commands** - This folder contains commands
|
**commands/Info** - 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")
|
||||||
|
|
||||||
@ -14,22 +12,26 @@ 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```
|
||||||
|
|
||||||
1) Use ```npm i ```
|
2) ```cd CatalystMoon```
|
||||||
|
|
||||||
2) Create a .env file ``` touch .env```
|
3) Use ```npm init ```
|
||||||
|
|
||||||
|
4) Install dependencies: ```npm install discord.js dotenv glob format-duration```
|
||||||
|
|
||||||
|
5) ```nano .env``` and put this:
|
||||||
|
|
||||||
3) Edit .env
|
|
||||||
```
|
```
|
||||||
TOKEN = token
|
TOKEN="your bot token here"
|
||||||
```
|
```
|
||||||
|
|
||||||
4) Go to Handler -- > index.js and change "GUIDIDHERE" to your Discord Servers Guild ID
|
4) ```nano ./handler/index.js``` and change "GUIDIDHERE" to your Discord Server's Guild ID
|
||||||
|
|
||||||
5) Go into https://discord.com/developers/applications and enable Privlaged Intents.
|
5) Go into https://discord.com/developers/applications and enable all 3 intents (presence, members, and message content) in your application.
|
||||||
|
|
||||||
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: "ping",
|
name: "hello",
|
||||||
description: "Returns websocket latency",
|
description: "Say hi to Tiffany!",
|
||||||
|
|
||||||
run: async (client, interaction) => {
|
run: async (client, interaction) => {
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setColor("#FF0000")
|
.setColor("#0CE2FA")
|
||||||
.setTitle("🏓 Pong!")
|
.setTitle("🌼 Hi friend!")
|
||||||
.setDescription(`Latency : ${client.ws.ping}ms`)
|
.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`)
|
||||||
.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] });
|
||||||
},
|
},
|
||||||
};
|
};
|
17
commands/Info/uptime.js
Normal file
17
commands/Info/uptime.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
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
17
package.json
@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user