mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:00:18 +00:00
Added more documentation and made changes to env variables
This commit is contained in:
parent
82fac8b0aa
commit
f3eccad4fa
@ -1,5 +1,11 @@
|
|||||||
# RadioX by EximiaBots
|
# RadioX by EximiaBots
|
||||||
We will bring you finnish radio to your discord server.
|
Internet Radio to your Discord guild
|
||||||
|
|
||||||
|
## [Radio Stations List](https://gitea.cwinfo.org/cwchristerw/radio)
|
||||||
|
This bot is using Gitea repo to get radio stations from [playlist.json](https://gitea.cwinfo.org/cwchristerw/radio/raw/branch/master/playlist.json) file. List is currently maintained by Christer Warén. You can use alternative list with same format when using RADIOX_STATIONSLISTURL environment variable.
|
||||||
|
|
||||||
|
## PREFIX
|
||||||
|
Default prefix is "rx-" and you can change it with using RADIOX_PREFIX environment variable.
|
||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
1. `docker build -t warengroup/eximiabots-radiox .`
|
1. `docker build -t warengroup/eximiabots-radiox .`
|
||||||
|
@ -20,7 +20,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
client.stations = await fetch('https://gitea.cwinfo.org/cwchristerw/radio/raw/branch/master/playlist.json')
|
client.stations = await fetch(client.config.stationslistUrl)
|
||||||
.then(client.funcs.checkFetchStatus)
|
.then(client.funcs.checkFetchStatus)
|
||||||
.then(response => response.json());
|
.then(response => response.json());
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -29,7 +29,7 @@ module.exports = {
|
|||||||
|
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
try {
|
try {
|
||||||
client.stations = await fetch('https://gitea.cwinfo.org/cwchristerw/radio/raw/branch/master/playlist.json')
|
client.stations = await fetch(client.config.stationslistUrl)
|
||||||
.then(client.funcs.checkFetchStatus)
|
.then(client.funcs.checkFetchStatus)
|
||||||
.then(response => response.json());
|
.then(response => response.json());
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -5,6 +5,9 @@ module.exports = {
|
|||||||
//credentials
|
//credentials
|
||||||
token: process.env.DISCORD_TOKEN,
|
token: process.env.DISCORD_TOKEN,
|
||||||
|
|
||||||
|
//radio stations
|
||||||
|
stationslistUrl: process.env.RADIOX_STATIONSLISTURL || "https://gitea.cwinfo.org/cwchristerw/radio/raw/branch/master/playlist.json",
|
||||||
|
|
||||||
//support
|
//support
|
||||||
supportGuild: "https://discord.gg/rRA65Mn",
|
supportGuild: "https://discord.gg/rRA65Mn",
|
||||||
devId: [
|
devId: [
|
||||||
@ -17,6 +20,6 @@ module.exports = {
|
|||||||
invite: "https://discordapp.com/api/oauth2/authorize?client_id=684109535312609409&permissions=3427328&scope=bot",
|
invite: "https://discordapp.com/api/oauth2/authorize?client_id=684109535312609409&permissions=3427328&scope=bot",
|
||||||
|
|
||||||
//Settings
|
//Settings
|
||||||
prefix: process.env.RADIOX_PREFIX || process.env.PREFIX || "rx>",
|
prefix: process.env.RADIOX_PREFIX || "rx-",
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user