mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-01-09 15:15:47 +00:00
Compare commits
69 Commits
0.5.11
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aff9a67e2c | ||
|
|
ff8d6bc273 | ||
|
|
4c3441ac14 | ||
|
|
ed359d38d9 | ||
|
|
a9dd47820b | ||
|
|
1c7a02ca7f | ||
|
|
07575c83f3 | ||
|
|
babe276c87 | ||
|
|
572c42b6f4 | ||
|
|
ef25938066 | ||
|
|
d8421fa76d | ||
|
|
a4ed9822d6 | ||
|
|
287150f315 | ||
|
|
1110af4d48 | ||
|
|
8668a6a6c1 | ||
|
|
f14e75e1ba | ||
|
|
4810a442c5 | ||
|
|
259dbf7498 | ||
|
|
653ae9d60f | ||
|
|
3d79fb02a4 | ||
|
|
d3e5a3e64d | ||
|
|
9ec1a1bd0b | ||
|
|
53988d5103 | ||
|
|
f6c20130ab | ||
|
|
df080439e4 | ||
|
|
436b7c67ab | ||
|
|
46aee53ce9 | ||
|
|
367f28c295 | ||
|
|
ab9c13578c | ||
|
|
ceb063d4dc | ||
|
|
e86ee3e88b | ||
|
|
fd75b79a84 | ||
|
|
d2c6d6dc30 | ||
|
|
822dd2a0fc | ||
|
|
3b5a2efd1b | ||
|
|
408a7e08ac | ||
|
|
e15f227ea3 | ||
|
|
bf0ee41230 | ||
|
|
5fdd4f098b | ||
|
|
ebe8175b8e | ||
|
|
118ba4f47f | ||
|
|
cfc7323900 | ||
|
|
a323692384 | ||
|
|
b43e1e651f | ||
|
|
1ce9ba6655 | ||
|
|
845bd0d18e | ||
|
|
aa6d97f0b3 | ||
|
|
121a1e9aa4 | ||
|
|
080090afcc | ||
|
|
338658f4ac | ||
|
|
7ea5d6bc37 | ||
|
|
1e9e2f94cb | ||
|
|
e0ea12f63f | ||
|
|
b9032cc1bf | ||
|
|
d36b6b3cc9 | ||
|
|
07e6dd1c1d | ||
|
|
eafb2c91c1 | ||
|
|
4530c41f74 | ||
|
|
3f37ce6e94 | ||
|
|
87f1fe8ba3 | ||
|
|
c040bef1ef | ||
|
|
34f2f73948 | ||
|
|
42cadfe301 | ||
|
|
5e9abff368 | ||
|
|
41f938cc59 | ||
|
|
c2f6e2b87f | ||
|
|
dcca11d21e | ||
|
|
28ba6d9418 | ||
|
|
aa88c24152 |
8
.github/workflows/codeql-analyze.yml
vendored
8
.github/workflows/codeql-analyze.yml
vendored
@@ -39,11 +39,11 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
uses: github/codeql-action/init@v4
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
@@ -54,7 +54,7 @@ jobs:
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v3
|
||||
uses: github/codeql-action/autobuild@v4
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
@@ -68,4 +68,4 @@ jobs:
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
uses: github/codeql-action/analyze@v4
|
||||
|
||||
4
.github/workflows/docker-build.yml
vendored
4
.github/workflows/docker-build.yml
vendored
@@ -12,9 +12,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3.11.1
|
||||
uses: docker/setup-buildx-action@v3.12.0
|
||||
id: buildx
|
||||
with:
|
||||
install: true
|
||||
|
||||
2
.github/workflows/labeler.yml
vendored
2
.github/workflows/labeler.yml
vendored
@@ -11,7 +11,7 @@ jobs:
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/labeler@v5
|
||||
- uses: actions/labeler@v6
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
sync-labels: true
|
||||
|
||||
4
.github/workflows/typescript-build.yml
vendored
4
.github/workflows/typescript-build.yml
vendored
@@ -11,9 +11,9 @@ jobs:
|
||||
name: TypeScript Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
- name: install node v16
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 16
|
||||
- name: npm install
|
||||
|
||||
20
CHANGELOG.md
20
CHANGELOG.md
@@ -1,5 +1,25 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 0.5.13 (31.12.2025)
|
||||
|
||||
Patch Release
|
||||
|
||||
**Package**
|
||||
- Dependencies Update
|
||||
|
||||
**Contributors:**
|
||||
[cwchristerw](<https://github.com/cwchristerw>)
|
||||
|
||||
## 0.5.12 (22.12.2025)
|
||||
|
||||
Patch Release
|
||||
|
||||
**Package**
|
||||
- Dependencies Update
|
||||
|
||||
**Contributors:**
|
||||
[cwchristerw](<https://github.com/cwchristerw>)
|
||||
|
||||
## 0.5.11 (20.6.2025)
|
||||
|
||||
Patch Release
|
||||
|
||||
948
package-lock.json
generated
948
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
15
package.json
15
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "eximiabots-radiox",
|
||||
"version": "0.5.11",
|
||||
"version": "0.5.13",
|
||||
"description": "Internet Radio to your Discord guild",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
@@ -18,15 +18,16 @@
|
||||
"url": "https://github.com/warengroup/eximiabots-radiox/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@discordjs/voice": "^0.18.0",
|
||||
"discord.js": "^14.20.0",
|
||||
"dotenv": "^16.5.0",
|
||||
"libsodium-wrappers": "^0.7.15",
|
||||
"@discordjs/voice": "^0.19.0",
|
||||
"@snazzah/davey": "^0.1.9",
|
||||
"discord.js": "^14.25.1",
|
||||
"dotenv": "^17.2.3",
|
||||
"libsodium-wrappers": "^0.7.16",
|
||||
"path": "^0.12.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"rimraf": "^6.0.1",
|
||||
"typescript": "^5.8.3"
|
||||
"rimraf": "^6.1.2",
|
||||
"typescript": "^5.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=22.0.0",
|
||||
|
||||
@@ -10,6 +10,7 @@ export interface radio {
|
||||
connection: VoiceConnection | undefined,
|
||||
message: Message | null,
|
||||
station: station,
|
||||
track?: string,
|
||||
datastore?: datastore,
|
||||
currentTime?: number,
|
||||
startTime: number,
|
||||
|
||||
@@ -11,7 +11,6 @@ export interface station {
|
||||
type: "radioplay" | "supla" | "yle",
|
||||
address: string | string
|
||||
}
|
||||
track?: string;
|
||||
}
|
||||
|
||||
export default class Stations extends Array {
|
||||
|
||||
@@ -20,27 +20,27 @@ export default async function play(client: RadioClient, interaction: ChatInputCo
|
||||
.catch(error => {
|
||||
});
|
||||
|
||||
radio.station.track = "-";
|
||||
radio.track = "-";
|
||||
|
||||
if(playlist){
|
||||
switch(radio.station.playlist.type){
|
||||
case "radioplay":
|
||||
if(playlist[0] && playlist[0].stationNowPlaying && playlist[0].stationNowPlaying.nowPlayingArtist && playlist[0].stationNowPlaying.nowPlayingTrack){
|
||||
radio.station.track = "__" + playlist[0].stationNowPlaying.nowPlayingArtist + "__" + "\n" + playlist[0].stationNowPlaying.nowPlayingTrack;
|
||||
radio.track = "__" + playlist[0].stationNowPlaying.nowPlayingArtist + "__" + "\n" + playlist[0].stationNowPlaying.nowPlayingTrack;
|
||||
}
|
||||
break;
|
||||
case "supla":
|
||||
if(playlist.items && playlist.items[0] && playlist.items[0].artist && playlist.items[0].song){
|
||||
radio.station.track = "__" + playlist.items[0].artist + "__" + "\n" + playlist.items[0].song;
|
||||
radio.track = "__" + playlist.items[0].artist + "__" + "\n" + playlist.items[0].song;
|
||||
}
|
||||
break;
|
||||
case "yle":
|
||||
if(playlist.data && playlist.data.performer && playlist.data.title){
|
||||
radio.station.track = "__" + playlist.data.performer + "__" + "\n" + playlist.data.title;
|
||||
radio.track = "__" + playlist.data.performer + "__" + "\n" + playlist.data.title;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
radio.station.track = "-";
|
||||
radio.track = "-";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -60,7 +60,7 @@ export default async function play(client: RadioClient, interaction: ChatInputCo
|
||||
{
|
||||
name: client.messages.playTitle2,
|
||||
value: client.messages.replace(client.messages.playDescription2, {
|
||||
"%radio.station.track%": radio.station.track != undefined ? "\n\n" + radio.station.track : "-"
|
||||
"%radio.station.track%": radio.track != undefined ? "\n\n" + radio.track : "-"
|
||||
})
|
||||
},
|
||||
{
|
||||
@@ -135,27 +135,27 @@ export default async function play(client: RadioClient, interaction: ChatInputCo
|
||||
.catch(error => {
|
||||
});
|
||||
|
||||
radio.station.track = "-";
|
||||
radio.track = "-";
|
||||
|
||||
if(playlist){
|
||||
switch(radio.station.playlist?.type){
|
||||
case "radioplay":
|
||||
if(playlist[0] && playlist[0].stationNowPlaying && playlist[0].stationNowPlaying.nowPlayingArtist && playlist[0].stationNowPlaying.nowPlayingTrack){
|
||||
radio.station.track = "__" + playlist[0].stationNowPlaying.nowPlayingArtist + "__" + "\n" + playlist[0].stationNowPlaying.nowPlayingTrack;
|
||||
radio.track = "__" + playlist[0].stationNowPlaying.nowPlayingArtist + "__" + "\n" + playlist[0].stationNowPlaying.nowPlayingTrack;
|
||||
}
|
||||
break;
|
||||
case "supla":
|
||||
if(playlist.items && playlist.items[0] && playlist.items[0].artist && playlist.items[0].song){
|
||||
radio.station.track = "__" + playlist.items[0].artist + "__" + "\n" + playlist.items[0].song;
|
||||
radio.track = "__" + playlist.items[0].artist + "__" + "\n" + playlist.items[0].song;
|
||||
}
|
||||
break;
|
||||
case "yle":
|
||||
if(playlist.data && playlist.data.performer && playlist.data.title){
|
||||
radio.station.track = "__" + playlist.data.performer + "__" + "\n" + playlist.data.title;
|
||||
radio.track = "__" + playlist.data.performer + "__" + "\n" + playlist.data.title;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
radio.station.track = "-";
|
||||
radio.track = "-";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -180,7 +180,7 @@ export default async function play(client: RadioClient, interaction: ChatInputCo
|
||||
{
|
||||
name: client.messages.playTitle2,
|
||||
value: client.messages.replace(client.messages.playDescription2, {
|
||||
"%radio.station.track%": radio.station.track != undefined ? "\n\n" + radio.station.track : "-"
|
||||
"%radio.station.track%": radio.track != undefined ? "\n\n" + radio.track : "-"
|
||||
})
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user