Removed prefix from code

This commit is contained in:
Christer Warén 2021-09-02 09:38:15 +03:00
parent 0d795a6efb
commit 5e53a908e7
5 changed files with 3 additions and 9 deletions

View File

@ -1,3 +1,2 @@
DISCORD_TOKEN=
RADIOX_STATIONSLISTURL=https://gitea.cwinfo.org/cwchristerw/radio/raw/branch/master/playlist.json
RADIOX_PREFIX=rx-
RADIOX_STATIONSLISTURL=https://gitea.cwinfo.org/cwchristerw/radio/raw/branch/master/playlist.json

View File

@ -4,12 +4,9 @@ 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
1. `docker build -t warengroup/eximiabots-radiox .`
2. `docker run --name radiox-dev -d --net host -e DISCORD_TOKEN= -e RADIOX_PREFIX="rx-" -v "$PWD/datastore":/usr/src/app/datastore/ warengroup/eximiabots-radiox`
2. `docker run --name radiox-dev -d --net host -e DISCORD_TOKEN= -v "$PWD/datastore":/usr/src/app/datastore/ warengroup/eximiabots-radiox`
## Join our Discord Server
https://discord.gg/rRA65Mn

View File

@ -19,7 +19,6 @@ module.exports = {
message.helpTitle = client.messages.helpTitle.replace("%client.user.username%", client.user.username);
message.helpDescription = client.messages.helpDescription.replace("%commands%", commands);
message.helpDescription = message.helpDescription.replace("%client.config.prefix%", client.config.prefix);
const embed = new Discord.MessageEmbed()
.setTitle(message.helpTitle)

View File

@ -8,7 +8,7 @@ module.exports = {
bugDescription: "Join the support server \n %client.config.supportGuild%",
helpTitle: "%client.user.username% help:",
helpDescription: "%commands%",
helpCommandTitle: "%client.config.prefix%%command.name% %command.usage%",
helpCommandTitle: "%command.name% %command.usage%",
helpCommandDescription: "%command.description% \n Command Alias: %command.alias%",
inviteTitle: "Invite %client.user.username% to your Discord server!",
listTitle: "Radio Stations",

View File

@ -20,7 +20,6 @@ module.exports = {
hostedBy: "[Warén Group](https://waren.io)",
//Settings
prefix: process.env.RADIOX_PREFIX || "rx-",
version: process.env.RADIOX_VERSION || process.env.npm_package_version,
debug: process.env.DEBUG_MODE || false