Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
pranshu05 authored Dec 4, 2021
1 parent f1c480c commit 64baed9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
19 changes: 19 additions & 0 deletions commands/echo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { SlashCommandBuilder } = require("@discordjs/builders");
const { Interaction } = require("discord.js");

module.exports = {
data: new SlashCommandBuilder()
.setName("echo")
.setDescription("Echoes your inputs!")
.addStringOption(option =>
option
.setName("message")
.setDescription("The message to Echo")
.setRequired(true)
),
async execute(interaction){
interaction.reply({
content: interaction.options.getString("message"),
})
}
}
12 changes: 11 additions & 1 deletion commands/ping.js
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@

const { SlashCommandBuilder } = require("@discordjs/builders");
const { Interaction } = require("discord.js");

module.exports = {
data: new SlashCommandBuilder()
.setName("ping")
.setDescription("Pong!"),
async execute(interaction){
interaction.reply("Pong!")
}
}

0 comments on commit 64baed9

Please sign in to comment.