From d49a27d0f33179f37ba517e8d56a3c5905231b8a Mon Sep 17 00:00:00 2001 From: fearandesire <63979371+fearandesire@users.noreply.github.com> Date: Tue, 14 May 2024 18:21:02 -0400 Subject: [PATCH] refactor: Improve `/help` wording; Adjust footers; Rm /about --- src/commands/info/about.ts | 36 --------------------------------- src/lib/PlutoConfig.ts | 1 - src/utils/commands/info/info.ts | 32 ++++------------------------- 3 files changed, 4 insertions(+), 65 deletions(-) delete mode 100644 src/commands/info/about.ts diff --git a/src/commands/info/about.ts b/src/commands/info/about.ts deleted file mode 100644 index 87677b83..00000000 --- a/src/commands/info/about.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { ApplyOptions } from '@sapphire/decorators' -import { Command } from '@sapphire/framework' -import { EmbedBuilder } from 'discord.js' -import PlutoInfo from '../../utils/commands/info/info.js' - -@ApplyOptions({ - description: '❓ Learn about Pluto', -}) -export class UserCommand extends Command { - public override registerApplicationCommands(registry: Command.Registry) { - registry.registerChatInputCommand((builder) => - builder // - .setName(this.name) - .setDescription(this.description), - ) - } - - public override async chatInputRun( - interaction: Command.ChatInputCommandInteraction, - ) { - const aboutInfo = PlutoInfo.aboutInfo() - const embed = new EmbedBuilder() - .setTitle(aboutInfo.title) - .setDescription(aboutInfo.description) - .setColor(aboutInfo.color) - .setThumbnail(aboutInfo.thumbnail) - .setFooter({ - text: aboutInfo.footer, - }) - - return interaction.reply({ - embeds: [embed], - ephemeral: true, - }) - } -} diff --git a/src/lib/PlutoConfig.ts b/src/lib/PlutoConfig.ts index 03cd0eba..3e31efc7 100644 --- a/src/lib/PlutoConfig.ts +++ b/src/lib/PlutoConfig.ts @@ -21,7 +21,6 @@ const footers = [ '❓ View more commands via /commands', '❓ Learn more about Pluto via /about', '💙 Support Pluto via /patreon', - 'dev. by fenixforever', ] function helpfooter() { diff --git a/src/utils/commands/info/info.ts b/src/utils/commands/info/info.ts index 8833d098..fb26f6ef 100644 --- a/src/utils/commands/info/info.ts +++ b/src/utils/commands/info/info.ts @@ -2,33 +2,11 @@ import embedColors from '../../../lib/colorsConfig.js' import { helpfooter } from '@pluto-core-config' export default class PlutoInfo { - static aboutInfo() { - return { - title: 'About Pluto', - description: ` -Pluto is a full-fledged betting bot with a strong focus on simplicity. You can securely place bets on NFL & NBA games and participate in the online betting scene without using real-life currency. -# :robot: __Pluto Features:__ -◦ **H2H Wagers** -◦ **Real-Time Bet processing** -◦ **Real-Time Game Channel scheduling and deletion** -━━━━━━━━ -Pluto uses virtual currency with real match odds from various bookmakers to simulate common popular betting sites & the real betting experience. -**For usage, please refer to the /help command!** -:heart: **Enjoy using Pluto? [Support development & server cost](https://ko-fi.com/fenix7559)** -:nerd: [GitHub](https://github.com/fearandesire/Pluto-Betting-Bot) -:question: For questions/concerns, contact me: **<@${process.env.APP_DEV_ID}>**`, - thumbnail: `https://i.imgur.com/RWjfjyv.png`, - color: embedColors.PlutoBlue, - footer: `© fenixforever 2024 | Version: ${process.env.PROJECT_VERSION}`, - target: `reply`, - } - } - static commandsInfo() { const cmdList = { betting: { odds: "View the odds for this week's matches", - bet: 'Place a bet on a matchup', + bet: 'Place a bet on a match', cancelbet: "Cancel a pending bet you've placed", balance: 'View your current balance', }, @@ -37,12 +15,10 @@ Pluto uses virtual currency with real match odds from various bookmakers to simu leaderboard: "View the betting leaderboard, see who's on top and where you stand!", help: 'View information on how to use the bot', - commands: 'View all commands available to you', + commands: 'View all commands', bethistory: 'View the track record of your bets', }, } - - // Formatting the commands into a string for display const formatCommands = (cmds: { [key: string]: { [key: string]: string } }) => { @@ -73,8 +49,8 @@ Pluto uses virtual currency with real match odds from various bookmakers to simu static helpInfo() { return { - title: `How to use Pluto :coin:`, - description: `Pluto provides the fun of placing wagers on sports games, featuring leaderboards and statistics to compete against others.\n# Getting Started\nTo get started, first run the slash command \`/odds\` and view the current odds available. You can immediately start placing bets with the \`/bet\` command. You'll start with a balance of $50 to bet with.\nUse the command \`/dailyclaim\` every 24 hours to receive free money into your account - this is useful if you ran out of money. Don't give up!\n# Process\nOnce a game ends, the bets placed on it will be processed.\nYou'll receive a DM from Pluto with your winnings and relevant bet result information.\nUse /commands to view all commands available\n***💜 Want to support the development of Pluto? Use the /about command***`, + title: `Pluto Documentation`, + description: `Pluto is a full-fledged betting app that creates a competitive sports betting environment.\n# Getting Started\n1. Run the \`/odds\` command to view current betting odds.\n2. Use the \`/bet\` command to place bets, starting with a balance of $50.\n3. Use the \`/dailyclaim\` command every 24 hours to get free money if you run out of funds.\n\n**💜 [Support Pluto](https://www.patreon.com/fenix_)**\n**🌐 [Documentation](https://docs.pluto.fearandesire.com)**`, thumbnail: `https://i.imgur.com/RWjfjyv.png`, color: embedColors.PlutoBlue, footer: helpfooter(),