Add info command
This commit is contained in:
parent
ce2bb98351
commit
7ac58c1e13
|
@ -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.
|
||||
|
|
|
@ -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] });
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue