Skip to content

Commit

Permalink
Track moving and searching
Browse files Browse the repository at this point in the history
  • Loading branch information
PapiOphidian committed Nov 12, 2023
1 parent 5cd4038 commit 0b53729
Show file tree
Hide file tree
Showing 10 changed files with 401 additions and 69 deletions.
4 changes: 4 additions & 0 deletions config.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ const config = {
db_enabled: true,
add_url_for_web_redirect: "",
lavalink_default_search_prefix: "scsearch:",
search_extra_source_options: [{
name: "Soundcloud",
value: "sc"
}],
website_port: 10400,
lavalink_nodes: [{
host: "localhost",
Expand Down
31 changes: 30 additions & 1 deletion packages/lang/localizations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
"GIVEN_TO_OTHER": "Du hast %user %amount gegeben.",
"INVALID_DATA_TYPE_NO_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Valid values are %acceptable",
"INVALID_DATA_TYPE_YES_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Donors are allowed to supply arbitrary values to this setting %link. Valid values are %acceptable",
"SETTING_UPDATED": "That setting was updated"
"SETTING_UPDATED": "That setting was updated",
"SONG_MOVED": "%title moved"
},
"sit": {
"name": "sit",
Expand Down Expand Up @@ -736,5 +737,33 @@
"coupleleaderboard": {
"name": "coupleleaderboard",
"description": "Shows the leaderboard for top couples of money"
},
"move": {
"name": "move",
"description": "Move a track in the queue to a new position",
"options": {
"from": {
"name": "from",
"description": "1 based index of the track to move"
},
"to": {
"name": "to",
"description": "1 based index to move the track to"
}
}
},
"search": {
"name": "search",
"description": "Search for a track from multiple sources",
"options": {
"input": {
"name": "input",
"description": "What to search for"
},
"source": {
"name": "source",
"description": "The website to use to search for the track"
}
}
}
}
31 changes: 30 additions & 1 deletion packages/lang/localizations/en-gb.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@
"GIVEN_TO_OTHER": "You have given %amount to %user",
"INVALID_DATA_TYPE_NO_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Valid values are %acceptable",
"INVALID_DATA_TYPE_YES_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Donors are allowed to supply arbitrary values to this setting %link. Valid values are %acceptable",
"SETTING_UPDATED": "That setting was updated"
"SETTING_UPDATED": "That setting was updated",
"SONG_MOVED": "%title moved"
},
"sit": {
"name": "sit",
Expand Down Expand Up @@ -731,5 +732,33 @@
"coupleleaderboard": {
"name": "coupleleaderboard",
"description": "Shows the leaderboard for top couples of money"
},
"move": {
"name": "move",
"description": "Move a track in the queue to a new position",
"options": {
"from": {
"name": "from",
"description": "1 based index of the track to move"
},
"to": {
"name": "to",
"description": "1 based index to move the track to"
}
}
},
"search": {
"name": "search",
"description": "Search for a track from multiple sources",
"options": {
"input": {
"name": "input",
"description": "What to search for"
},
"source": {
"name": "source",
"description": "The website to use to search for the track"
}
}
}
}
31 changes: 30 additions & 1 deletion packages/lang/localizations/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@
"GIVEN_TO_OTHER": "You have given %amount to %user",
"INVALID_DATA_TYPE_NO_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Valid values are %acceptable",
"INVALID_DATA_TYPE_YES_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Donors are allowed to supply arbitrary values to this setting %link. Valid values are %acceptable",
"SETTING_UPDATED": "That setting was updated"
"SETTING_UPDATED": "That setting was updated",
"SONG_MOVED": "%title moved"
},
"sit": {
"name": "sit",
Expand Down Expand Up @@ -731,5 +732,33 @@
"coupleleaderboard": {
"name": "coupleleaderboard",
"description": "Shows the leaderboard for top couples of money"
},
"move": {
"name": "move",
"description": "Move a track in the queue to a new position",
"options": {
"from": {
"name": "from",
"description": "1 based index of the track to move"
},
"to": {
"name": "to",
"description": "1 based index to move the track to"
}
}
},
"search": {
"name": "search",
"description": "Search for a track from multiple sources",
"options": {
"input": {
"name": "input",
"description": "What to search for"
},
"source": {
"name": "source",
"description": "The website to use to search for the track"
}
}
}
}
31 changes: 30 additions & 1 deletion packages/lang/localizations/es-es.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@
"GIVEN_TO_OTHER": "You have given %amount to %user",
"INVALID_DATA_TYPE_NO_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Valid values are %acceptable",
"INVALID_DATA_TYPE_YES_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Donors are allowed to supply arbitrary values to this setting %link. Valid values are %acceptable",
"SETTING_UPDATED": "That setting was updated"
"SETTING_UPDATED": "That setting was updated",
"SONG_MOVED": "%title moved"
},
"sit": {
"name": "sentarse",
Expand Down Expand Up @@ -731,5 +732,33 @@
"coupleleaderboard": {
"name": "coupleleaderboard",
"description": "Shows the leaderboard for top couples of money"
},
"move": {
"name": "move",
"description": "Move a track in the queue to a new position",
"options": {
"from": {
"name": "from",
"description": "1 based index of the track to move"
},
"to": {
"name": "to",
"description": "1 based index to move the track to"
}
}
},
"search": {
"name": "search",
"description": "Search for a track from multiple sources",
"options": {
"input": {
"name": "input",
"description": "What to search for"
},
"source": {
"name": "source",
"description": "The website to use to search for the track"
}
}
}
}
31 changes: 30 additions & 1 deletion packages/lang/localizations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
"GIVEN_TO_OTHER": "You have given %amount to %user",
"INVALID_DATA_TYPE_NO_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Valid values are %acceptable",
"INVALID_DATA_TYPE_YES_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Donors are allowed to supply arbitrary values to this setting %link. Valid values are %acceptable",
"SETTING_UPDATED": "That setting was updated"
"SETTING_UPDATED": "That setting was updated",
"SONG_MOVED": "%title moved"
},
"sit": {
"name": "zit",
Expand Down Expand Up @@ -736,5 +737,33 @@
"coupleleaderboard": {
"name": "coupleleaderboard",
"description": "Shows the leaderboard for top couples of money"
},
"move": {
"name": "move",
"description": "Move a track in the queue to a new position",
"options": {
"from": {
"name": "from",
"description": "1 based index of the track to move"
},
"to": {
"name": "to",
"description": "1 based index to move the track to"
}
}
},
"search": {
"name": "search",
"description": "Search for a track from multiple sources",
"options": {
"input": {
"name": "input",
"description": "What to search for"
},
"source": {
"name": "source",
"description": "The website to use to search for the track"
}
}
}
}
31 changes: 30 additions & 1 deletion packages/lang/localizations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@
"GIVEN_TO_OTHER": "You have given %amount to %user",
"INVALID_DATA_TYPE_NO_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Valid values are %acceptable",
"INVALID_DATA_TYPE_YES_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Donors are allowed to supply arbitrary values to this setting %link. Valid values are %acceptable",
"SETTING_UPDATED": "That setting was updated"
"SETTING_UPDATED": "That setting was updated",
"SONG_MOVED": "%title moved"
},
"sit": {
"name": "siad",
Expand Down Expand Up @@ -731,5 +732,33 @@
"coupleleaderboard": {
"name": "coupleleaderboard",
"description": "Shows the leaderboard for top couples of money"
},
"move": {
"name": "move",
"description": "Move a track in the queue to a new position",
"options": {
"from": {
"name": "from",
"description": "1 based index of the track to move"
},
"to": {
"name": "to",
"description": "1 based index to move the track to"
}
}
},
"search": {
"name": "search",
"description": "Search for a track from multiple sources",
"options": {
"input": {
"name": "input",
"description": "What to search for"
},
"source": {
"name": "source",
"description": "The website to use to search for the track"
}
}
}
}
31 changes: 30 additions & 1 deletion packages/lang/localizations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@
"GIVEN_TO_OTHER": "You have given %amount to %user",
"INVALID_DATA_TYPE_NO_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Valid values are %acceptable",
"INVALID_DATA_TYPE_YES_DONOR_ARBITRARY": "The value you provided to update that setting with is invalid. Donors are allowed to supply arbitrary values to this setting %link. Valid values are %acceptable",
"SETTING_UPDATED": "That setting was updated"
"SETTING_UPDATED": "That setting was updated",
"SONG_MOVED": "%title moved"
},
"sit": {
"name": "сидеть",
Expand Down Expand Up @@ -731,5 +732,33 @@
"coupleleaderboard": {
"name": "coupleleaderboard",
"description": "Shows the leaderboard for top couples of money"
},
"move": {
"name": "move",
"description": "Move a track in the queue to a new position",
"options": {
"from": {
"name": "from",
"description": "1 based index of the track to move"
},
"to": {
"name": "to",
"description": "1 based index to move the track to"
}
}
},
"search": {
"name": "search",
"description": "Search for a track from multiple sources",
"options": {
"input": {
"name": "input",
"description": "What to search for"
},
"source": {
"name": "source",
"description": "The website to use to search for the track"
}
}
}
}
Loading

0 comments on commit 0b53729

Please sign in to comment.