mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 03:09:32 +00:00 
			
		
		
		
	
							
								
								
									
										2
									
								
								.github/workflows/docker-build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/docker-build.yml
									
									
									
									
										vendored
									
									
								
							@@ -14,7 +14,7 @@ jobs:
 | 
			
		||||
    - name: Checkout
 | 
			
		||||
      uses: actions/checkout@v4
 | 
			
		||||
    - name: Setup Docker Buildx
 | 
			
		||||
      uses: docker/setup-buildx-action@v3.0.0
 | 
			
		||||
      uses: docker/setup-buildx-action@v3.3.0
 | 
			
		||||
      id: buildx
 | 
			
		||||
      with:
 | 
			
		||||
        install: true
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
FROM node:20-alpine
 | 
			
		||||
FROM docker.io/library/node:20-alpine
 | 
			
		||||
 | 
			
		||||
#Dependencies
 | 
			
		||||
RUN apk add --virtual .build-deps python3 make g++ gcc git
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								LICENSE
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								LICENSE
									
									
									
									
									
								
							@@ -1,6 +1,6 @@
 | 
			
		||||
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
 | 
			
		||||
of this software and associated documentation files (the "Software"), to deal
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										13
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								README.md
									
									
									
									
									
								
							@@ -10,36 +10,35 @@ This bot is using Gitea repo to get radio stations from [playlist.json](https://
 | 
			
		||||
 | 
			
		||||
**Production**
 | 
			
		||||
```
 | 
			
		||||
docker build -t warengroup/eximiabots-radiox:latest . --pull
 | 
			
		||||
podman build -t warengroup/eximiabots-radiox:latest . --pull
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
**Beta**
 | 
			
		||||
```
 | 
			
		||||
docker build -t warengroup/eximiabots-radiox:latest-beta . --pull
 | 
			
		||||
podman build -t warengroup/eximiabots-radiox:latest-beta . --pull
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
**Dev**
 | 
			
		||||
```
 | 
			
		||||
docker build -t warengroup/eximiabots-radiox:latest-dev . --pull
 | 
			
		||||
podman build -t warengroup/eximiabots-radiox:latest-dev . --pull
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### 2. Run Container
 | 
			
		||||
 | 
			
		||||
**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**
 | 
			
		||||
```
 | 
			
		||||
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**
 | 
			
		||||
```
 | 
			
		||||
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
 | 
			
		||||
https://discord.gg/rRA65Mn
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3113
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3113
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										20
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								package.json
									
									
									
									
									
								
							@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "eximiabots-radiox",
 | 
			
		||||
  "version": "0.5.4",
 | 
			
		||||
  "version": "0.5.5",
 | 
			
		||||
  "description": "Internet Radio to your Discord guild",
 | 
			
		||||
  "main": "index.js",
 | 
			
		||||
  "scripts": {
 | 
			
		||||
@@ -18,29 +18,15 @@
 | 
			
		||||
    "url": "https://github.com/warengroup/eximiabots-radiox/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@discordjs/builders": "^1.7.0",
 | 
			
		||||
    "@discordjs/opus": "^0.9.0",
 | 
			
		||||
    "@discordjs/rest": "^2.2.0",
 | 
			
		||||
    "@discordjs/voice": "^0.16.1",
 | 
			
		||||
    "discord-api-types": "^0.37.66",
 | 
			
		||||
    "discord.js": "^14.14.1",
 | 
			
		||||
    "dotenv": "^16.3.1",
 | 
			
		||||
    "dotenv": "^16.4.5",
 | 
			
		||||
    "libsodium-wrappers": "^0.7.13",
 | 
			
		||||
    "path": "^0.12.7"
 | 
			
		||||
  },
 | 
			
		||||
  "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",
 | 
			
		||||
    "ts-node": "^10.9.2",
 | 
			
		||||
    "tsc-watch": "^6.0.4",
 | 
			
		||||
    "typescript": "^5.3.3"
 | 
			
		||||
    "typescript": "^5.4.5"
 | 
			
		||||
  },
 | 
			
		||||
  "engines": {
 | 
			
		||||
      "node": ">=18.16.0",
 | 
			
		||||
 
 | 
			
		||||
@@ -42,7 +42,7 @@ export default class RadioClient extends Client {
 | 
			
		||||
 | 
			
		||||
        console.log('RadioX ' + this.config.version);
 | 
			
		||||
        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('');
 | 
			
		||||
 | 
			
		||||
        this.funcs.logger("Bot", "Starting");
 | 
			
		||||
 
 | 
			
		||||
@@ -205,7 +205,7 @@ export default async function play(client: RadioClient, interaction: ChatInputCo
 | 
			
		||||
                radio.message = await radio.textChannel?.send({ embeds: [embed], components: [buttons] }) ?? null;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },10000);
 | 
			
		||||
    },30000);
 | 
			
		||||
 | 
			
		||||
    interaction?.reply({
 | 
			
		||||
        content: client.messages.emojis["play"] + client.messages.replace(client.messages.play, {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user