From 7ac58c1e13782ec52bb29d7d3aa3519ea62d4028 Mon Sep 17 00:00:00 2001 From: baz Date: Sat, 30 Dec 2023 02:23:11 +0000 Subject: [PATCH] Add info command --- README.md | 4 ++++ commands/testing/info.js | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 commands/testing/info.js diff --git a/README.md b/README.md index 1a25257..b9ad664 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,10 @@ Get the details of a game from the IGDB database. - `gamename` - The name of the game. - `gameid` - The IGDB game ID. +## /info + +Get info on the bot. + ## /leaderboard Shows the leaderboard for the 100 Game Challenge. diff --git a/commands/testing/info.js b/commands/testing/info.js new file mode 100644 index 0000000..97a43e6 --- /dev/null +++ b/commands/testing/info.js @@ -0,0 +1,17 @@ +const { SlashCommandBuilder, EmbedBuilder } = require('discord.js'); + +module.exports = { + data: new SlashCommandBuilder() + .setName('info') + .setDescription('Info about the bot.'), + async execute(interaction) { + const embed = new EmbedBuilder() + .setColor(0xD36918) + .setTitle('The Ochulus') + .setThumbnail(interaction.client.user.avatarURL()) + .setDescription('The Ochulus is a Discord bot used for tracking games for the 100 Games Challenge.\n\n **Commands**\nAll commands can be viewed using the Discord slash command panel when typing a new command. Alternatively, you can view all the commands on the [Github Repository](https://github.com/Bazzadwarf/TheOchulus?tab=readme-ov-file#commands).\n\n **Source Code**\n You can view the source code for The Ochulus on [Github](https://github.com/Bazzadwarf/TheOchulus) or [Sauce Control](https://sauce.pizzawednes.day/baz/TheOchulus)\n\n **Misc**\n The Ochulus was originally writted by [baz](https://github.com/Bazzadwarf), it is is open to new contributions, contributors and feature requests.') + .setTimestamp(); + + return interaction.reply({ embeds: [embed] }); + }, +}; \ No newline at end of file