1 Commits

Author SHA1 Message Date
560e62fa53 Update 'README.md'
Fixed few "obvious" typos.
2022-07-23 12:27:51 +00:00
4 changed files with 38 additions and 40 deletions

View File

@ -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:
**commands/Info** - This folder contains commands
**commands** - This folder contains commands
**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.
# 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 ```
4) Install dependencies: ```npm install discord.js dotenv glob format-duration```
5) ```nano .env``` and put this:
2) Create a .env file ``` touch .env```
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!

View File

@ -1,16 +1,16 @@
const { EmbedBuilder } = require("discord.js");
const { EmbedBuilder } = require('discord.js');
module.exports = {
name: "hello",
description: "Say hi to Tiffany!",
name: "ping",
description: "Returns websocket latency",
run: async (client, interaction) => {
const embed = new EmbedBuilder()
.setColor("#0CE2FA")
.setTitle("🌼 Hi friend!")
.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`)
.setColor("#FF0000")
.setTitle("🏓 Pong!")
.setDescription(`Latency : ${client.ws.ping}ms`)
.setTimestamp()
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
interaction.followUp({ embeds: [embed] });
},
};
};

View File

@ -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
View 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"
}
}