Skip to content

Commit bbe7b1a

Browse files
committed
feat: change almost every string value
1 parent 8bedb67 commit bbe7b1a

17 files changed

Lines changed: 139 additions & 40 deletions

File tree

.vscode/settings.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"editor.tabSize": 2,
3+
"prettier.useTabs": false,
4+
"files.insertFinalNewline": true,
5+
"files.trimTrailingWhitespace": true,
6+
"editor.trimAutoWhitespace": true,
7+
"editor.formatOnSave": true,
8+
"editor.codeActionsOnSave": {
9+
"source.fixAll.eslint": "explicit"
10+
},
11+
"[typescript]": {
12+
"editor.defaultFormatter": "esbenp.prettier-vscode"
13+
},
14+
"typescript.format.semicolons": "insert",
15+
"typescript.preferences.quoteStyle": "single"
16+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Spotify Manager
22

3-
Control spotify via a discord bot! What could go wrong? Allow anyone to queue songs, manage playback status and more
4-
all from a discord bot. This application uses [Discord.js v14](https://www.npmjs.com/package/discord.js) and the
3+
Control spotify via a discord bot! What could go wrong? Allow anyone to queue songs, manage playback status and more all
4+
from a discord bot. This application uses [Discord.js v14](https://www.npmjs.com/package/discord.js) and the
55
[Spotify Web API](https://developer.spotify.com/documentation/web-api/).
66

77
## Table of Contents

messages.json

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,51 @@
1111
"songQueued": "Song added to queue.",
1212
"defaultErrorMessage": "{warningEmoji} Something went wrong",
1313
"errorReported": "This error has been reported to the owner. Please try again later.",
14-
"discordStatus": "to Music!",
14+
"discordStatus": "Music!",
1515
"missingExecuteFunction": "Execute Method not implemented!",
1616
"missingRoutesFunction": "Routes Method not implemented!",
1717
"noSearchResults": "No Search Results Found",
1818
"tokenGenerated": "Token generated successfully",
1919
"errorFetchingData": "An error occurred while fetching data",
2020
"itemPreview": "Preview an Item",
21-
"upcomingQueue": "Upcoming Queue\n**{warningEmoji} Warning:** This dose not show local files"
21+
"upcomingQueue": "Upcoming Queue\n**{warningEmoji} Warning:** This dose not show local files",
22+
"missingEmoji": "Missing Emoji",
23+
"playbackEmbed": {
24+
"nothingPlayingDescription": "User has nothing playing on spotify",
25+
"description": "Currently {playbackState}",
26+
"playbackStatePlaying": "Playing",
27+
"playbackStatePaused": "Paused",
28+
"progressBar": {
29+
"enabled": true,
30+
"title": "Progress",
31+
"value": "{progressBar}"
32+
},
33+
"volumeBar": {
34+
"enabled": true,
35+
"title": "Volume",
36+
"value": "{volumeBar}"
37+
}
38+
},
39+
"trackEmbed": {
40+
"title": "Track Information",
41+
"description": "[{name}]({spotifyUrl}) {emojis}\n\n[{albumName}](<{albumSpotifyUrl}>) | [{artistName}](<{artistSpotifyUrl}>)"
42+
},
43+
"fallBackEmojis": {
44+
"warning": "⚠️",
45+
"spotify": "🟢",
46+
"shuffle": "🔀",
47+
"repeatOne": "🔂",
48+
"repeat": "🔁",
49+
"refresh": "🔄",
50+
"queue": "🎶",
51+
"play": "⏯️",
52+
"pause": "⏸️",
53+
"local": "🇱",
54+
"info": "🇮",
55+
"forwardOne": "▶️",
56+
"forward": "",
57+
"explicit": "🇪",
58+
"backOne": "◀️",
59+
"back": ""
60+
}
2261
}

src/Discord/Buttons/Info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class InfoButton extends Button {
1515
if (command === undefined) {
1616
await interaction.reply({
1717
content: ReplaceVariables(this.discord.Application.messages.buttonNotFound, {
18-
warningEmoji: this.discord.emojis.get('warning') || 'Missing Emoji'
18+
warningEmoji: this.discord.emojis.get('warning') || this.discord.Application.messages.missingEmoji
1919
}),
2020
flags: MessageFlags.Ephemeral
2121
});

src/Discord/Buttons/Pause.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class PauseButton extends Button {
1515
if (command === undefined) {
1616
await interaction.reply({
1717
content: ReplaceVariables(this.discord.Application.messages.buttonNotFound, {
18-
warningEmoji: this.discord.emojis.get('warning') || 'Missing Emoji'
18+
warningEmoji: this.discord.emojis.get('warning') || this.discord.Application.messages.missingEmoji
1919
}),
2020
flags: MessageFlags.Ephemeral
2121
});

src/Discord/Buttons/Play.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class PlayButton extends Button {
1515
if (command === undefined) {
1616
await interaction.reply({
1717
content: ReplaceVariables(this.discord.Application.messages.buttonNotFound, {
18-
warningEmoji: this.discord.emojis.get('warning') || 'Missing Emoji'
18+
warningEmoji: this.discord.emojis.get('warning') || this.discord.Application.messages.missingEmoji
1919
}),
2020
flags: MessageFlags.Ephemeral
2121
});

src/Discord/Buttons/Previous.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class PreviousButton extends Button {
1515
if (command === undefined) {
1616
await interaction.reply({
1717
content: ReplaceVariables(this.discord.Application.messages.buttonNotFound, {
18-
warningEmoji: this.discord.emojis.get('warning') || 'Missing Emoji'
18+
warningEmoji: this.discord.emojis.get('warning') || this.discord.Application.messages.missingEmoji
1919
}),
2020
flags: MessageFlags.Ephemeral
2121
});

src/Discord/Buttons/Queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class QueueButton extends Button {
1515
if (command === undefined) {
1616
await interaction.reply({
1717
content: ReplaceVariables(this.discord.Application.messages.buttonNotFound, {
18-
warningEmoji: this.discord.emojis.get('warning') || 'Missing Emoji'
18+
warningEmoji: this.discord.emojis.get('warning') || this.discord.Application.messages.missingEmoji
1919
}),
2020
flags: MessageFlags.Ephemeral
2121
});

src/Discord/Buttons/Shuffle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ShuffleButton extends Button {
1515
if (command === undefined) {
1616
await interaction.reply({
1717
content: ReplaceVariables(this.discord.Application.messages.buttonNotFound, {
18-
warningEmoji: this.discord.emojis.get('warning') || 'Missing Emoji'
18+
warningEmoji: this.discord.emojis.get('warning') || this.discord.Application.messages.missingEmoji
1919
}),
2020
flags: MessageFlags.Ephemeral
2121
});

src/Discord/Buttons/Skip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class SkipButton extends Button {
1515
if (command === undefined) {
1616
await interaction.reply({
1717
content: ReplaceVariables(this.discord.Application.messages.buttonNotFound, {
18-
warningEmoji: this.discord.emojis.get('warning') || 'Missing Emoji'
18+
warningEmoji: this.discord.emojis.get('warning') || this.discord.Application.messages.missingEmoji
1919
}),
2020
flags: MessageFlags.Ephemeral
2121
});

0 commit comments

Comments
 (0)