Merge pull request #963 from warengroup/develop

Version 0.5.5
This commit is contained in:
Christer Warén 2024-04-30 23:41:20 +03:00 committed by GitHub
commit 29fa035dfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 244 additions and 2912 deletions

View File

@ -14,7 +14,7 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Docker Buildx - name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3.0.0 uses: docker/setup-buildx-action@v3.3.0
id: buildx id: buildx
with: with:
install: true install: true

View File

@ -1,4 +1,4 @@
FROM node:20-alpine FROM docker.io/library/node:20-alpine
#Dependencies #Dependencies
RUN apk add --virtual .build-deps python3 make g++ gcc git RUN apk add --virtual .build-deps python3 make g++ gcc git

View File

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2020-2023 EximiaBots by Warén Group Copyright (c) 2020-2024 EximiaBots by Warén Group
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -10,36 +10,35 @@ This bot is using Gitea repo to get radio stations from [playlist.json](https://
**Production** **Production**
``` ```
docker build -t warengroup/eximiabots-radiox:latest . --pull podman build -t warengroup/eximiabots-radiox:latest . --pull
``` ```
**Beta** **Beta**
``` ```
docker build -t warengroup/eximiabots-radiox:latest-beta . --pull podman build -t warengroup/eximiabots-radiox:latest-beta . --pull
``` ```
**Dev** **Dev**
``` ```
docker build -t warengroup/eximiabots-radiox:latest-dev . --pull podman build -t warengroup/eximiabots-radiox:latest-dev . --pull
``` ```
### 2. Run Container ### 2. Run Container
**Production** **Production**
``` ```
docker run --name radiox --net host -d -e DISCORD_TOKEN= -e STREAMER_MODE=auto -v "$PWD/datastore":/usr/src/app/datastore/ warengroup/eximiabots-radiox:latest podman run --name radiox -d -e DISCORD_TOKEN= -e STREAMER_MODE=auto -v "$PWD/datastore":/usr/src/app/datastore/ warengroup/eximiabots-radiox:latest
``` ```
**Beta** **Beta**
``` ```
docker run --name radiox --net host -d -e DISCORD_TOKEN= -e STREAMER_MODE=auto -v "$PWD/datastore":/usr/src/app/datastore/ warengroup/eximiabots-radiox:latest-beta podman run --name radiox -d -e DISCORD_TOKEN= -e STREAMER_MODE=auto -v "$PWD/datastore":/usr/src/app/datastore/ warengroup/eximiabots-radiox:latest-beta
``` ```
**Dev** **Dev**
``` ```
docker run --rm --name radiox-dev --net host -e DISCORD_TOKEN= -e DEV_MODE=true -v "$PWD":/usr/src/app/ warengroup/eximiabots-radiox:latest-dev podman run --rm --name radiox-dev -e DISCORD_TOKEN= -e DEV_MODE=true -v "$PWD":/usr/src/app/ warengroup/eximiabots-radiox:latest-dev
``` ```
## Join our Discord Server ## Join our Discord Server
https://discord.gg/rRA65Mn https://discord.gg/rRA65Mn

3113
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "eximiabots-radiox", "name": "eximiabots-radiox",
"version": "0.5.4", "version": "0.5.5",
"description": "Internet Radio to your Discord guild", "description": "Internet Radio to your Discord guild",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
@ -18,29 +18,15 @@
"url": "https://github.com/warengroup/eximiabots-radiox/issues" "url": "https://github.com/warengroup/eximiabots-radiox/issues"
}, },
"dependencies": { "dependencies": {
"@discordjs/builders": "^1.7.0",
"@discordjs/opus": "^0.9.0",
"@discordjs/rest": "^2.2.0",
"@discordjs/voice": "^0.16.1", "@discordjs/voice": "^0.16.1",
"discord-api-types": "^0.37.66",
"discord.js": "^14.14.1", "discord.js": "^14.14.1",
"dotenv": "^16.3.1", "dotenv": "^16.4.5",
"libsodium-wrappers": "^0.7.13", "libsodium-wrappers": "^0.7.13",
"path": "^0.12.7" "path": "^0.12.7"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.10.5",
"@types/ws": "^8.5.9",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.0",
"prettier": "^3.1.1",
"rimraf": "^5.0.5", "rimraf": "^5.0.5",
"ts-node": "^10.9.2", "typescript": "^5.4.5"
"tsc-watch": "^6.0.4",
"typescript": "^5.3.3"
}, },
"engines": { "engines": {
"node": ">=18.16.0", "node": ">=18.16.0",

View File

@ -42,7 +42,7 @@ export default class RadioClient extends Client {
console.log('RadioX ' + this.config.version); console.log('RadioX ' + this.config.version);
console.log('Internet Radio to your Discord guild'); console.log('Internet Radio to your Discord guild');
console.log('(c)2020-2022 EximiaBots by Warén Group'); console.log('(c)2020-2024 EximiaBots by Warén Group');
console.log(''); console.log('');
this.funcs.logger("Bot", "Starting"); this.funcs.logger("Bot", "Starting");

View File

@ -205,7 +205,7 @@ export default async function play(client: RadioClient, interaction: ChatInputCo
radio.message = await radio.textChannel?.send({ embeds: [embed], components: [buttons] }) ?? null; radio.message = await radio.textChannel?.send({ embeds: [embed], components: [buttons] }) ?? null;
} }
} }
},10000); },30000);
interaction?.reply({ interaction?.reply({
content: client.messages.emojis["play"] + client.messages.replace(client.messages.play, { content: client.messages.emojis["play"] + client.messages.replace(client.messages.play, {