Skip to content

Commit

Permalink
refactor: more accurate "powered by" wording in default /help
Browse files Browse the repository at this point in the history
It didn't really make much sense to show "Powered by RoboPlay" for self-hosted bots, so now it shows the name of this framework instead. :3
  • Loading branch information
Pkmmte committed Apr 29, 2023
1 parent 07bd8f0 commit 7375d4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eighty-drinks-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@roboplay/robo.js': patch
---

refactor: more accurate "powered by" wording
5 changes: 4 additions & 1 deletion packages/discord/src/default/commands/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export const config: CommandConfig = {

export default () => {
const manifest = getManifest()
const poweredBy = process.env.ROBOPLAY_HOST
? 'Powered by [**RoboPlay** ✨](https://roboplay.dev)'
: 'Powered by [**Robo.js**](https://roboplay.dev/robo)'

return {
embeds: [
Expand All @@ -21,7 +24,7 @@ export default () => {
})),
{
name: '\u200b', // Zero-width space
value: 'Powered by [**RoboPlay** ✨](https://roboplay.dev)',
value: poweredBy,
inline: false
}
],
Expand Down

0 comments on commit 7375d4f

Please sign in to comment.