Skip to content

Commit 18faed3

Browse files
author
aeristhy
committed
info
1 parent 06e01f0 commit 18faed3

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
lines changed

src/SlashCommands/cats/cat.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { CommandInteraction, MessageEmbed, MessageAttachment } = require('discord.js');
1+
const { CommandInteraction, MessageEmbed } = require('discord.js');
22
const axios = require('axios');
33

44
module.exports = {
@@ -23,7 +23,6 @@ module.exports = {
2323
* @param {Client} client
2424
* @param {CommandInteraction} interaction
2525
* @param {String[]} args
26-
* @param {MessageAttachment} attachment
2726
*/
2827
run: async (client, interaction, args) => {
2928
if(interaction.options.getSubcommand() === 'embed') {

src/SlashCommands/utility/help.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const { Client, CommandInteraction, MessageEmbed, Message } = require("discord.js");
2+
3+
module.exports = {
4+
name: "help",
5+
description: "View some useful information on how to use this bot.",
6+
type: 'CHAT_INPUT',
7+
/**
8+
*
9+
* @param {Client} client
10+
* @param {CommandInteraction} interaction
11+
* @param {Message} message
12+
*/
13+
run: async (client, interaction, message) => {
14+
const embed = new MessageEmbed()
15+
.setTitle('Random Cat')
16+
.setDescription(`Hey, there! I am a Open Source Discord bot that send random cat images.\n`+
17+
'To selfhost me, follow this instructions [in my github](https://github.com/aeristhy/Random-Cat)\n\n'+
18+
'Here are my commands:\n'+
19+
'▫️ `/ping`\n▫️ `/cat`\n\n')
20+
21+
interaction.followUp({ embeds: [embed] });
22+
},
23+
};

src/SlashCommands/utility/ping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { Client, CommandInteraction } = require("discord.js");
22

33
module.exports = {
44
name: "ping",
5-
description: "returns websocket ping",
5+
description: "Ping-pong!",
66
type: 'CHAT_INPUT',
77
/**
88
*

src/handler/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = async (client) => {
3232
client.on("ready", async () => {
3333
// Register for a single guild
3434
await client.guilds.cache
35-
.get("ADD A TEST GUILD(Guild ID)")
35+
.get("419724812592611338")
3636
.commands.set(arrayOfSlashCommands);
3737

3838

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "random-cat",
3-
"version": "5.0.0",
3+
"version": "5.0.1",
44
"description": "A basic bot to help you get started with using the no-api-key.com/api/v1/animals/cat API.",
55
"main": "./src/index.js",
66
"type": "commonjs",

0 commit comments

Comments
 (0)