Compare commits

...

16 Commits

Author SHA1 Message Date
849f5e7673 Update 'commands/Info/uptime.js' 2022-08-21 03:05:58 +00:00
e67a5b0f5a Update 'commands/Info/ping.js' 2022-08-21 03:04:26 +00:00
3b9f2cccb7 Update 'README.md' 2022-08-21 03:01:47 +00:00
523a595dcc Update 'commands/Info/uptime.js' 2022-07-29 00:14:57 +00:00
f33bd44ab5 Update 'commands/Info/ping.js' 2022-07-28 14:53:11 +00:00
041778e21e Update 'commands/Info/uptime.js' 2022-07-28 14:51:19 +00:00
b37159af4e Update 'commands/Info/ping.js' 2022-07-28 14:19:29 +00:00
bb68b76adf Update 'commands/Info/uptime.js' 2022-07-28 14:15:57 +00:00
ed608d52b8 Update 'commands/Info/ping.js'
Coming soon, a fully static website for my second My Little Pony Original Character. No MySQL, no PHP, not even JavaScript!
2022-07-27 10:32:56 +00:00
cc5aa9cff0 Update 'README.md' 2022-07-23 23:33:25 +00:00
5a1b804e3a Update 'commands/Info/ping.js' 2022-07-23 22:08:12 +00:00
f87de17119 Update 'README.md' 2022-07-23 22:00:42 +00:00
31c53c9ae0 Update 'README.md'
<3
2022-07-23 21:30:05 +00:00
aa77f8c347 Delete 'package.json' 2022-07-23 21:14:26 +00:00
3baacd92dd Add 'commands/Info/uptime.js' 2022-07-23 13:10:45 +00:00
526c2c5a53 Update 'commands/Info/ping.js' 2022-07-23 13:09:42 +00:00
4 changed files with 40 additions and 38 deletions

View File

@ -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!

View File

@ -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
View 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] });
},
};

View File

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