Merge pull request #23 from WarpWing/master

Fixed spelling recursively
This commit is contained in:
KGT1 2021-12-04 00:01:54 +01:00 committed by GitHub
commit 3cb087895f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"token":"", "token":"",
"server-adress":"", "server-address":"",
"jellyfin-username":"", "jellyfin-username":"",
"jellyfin-password":"", "jellyfin-password":"",
"discord-prefix":"?", "discord-prefix":"?",

View File

@ -4,7 +4,7 @@ const configfile = require(filename);
if (process.env.DISCORD_PREFIX) { configfile["discord-prefix"] = process.env.DISCORD_PREFIX; } if (process.env.DISCORD_PREFIX) { configfile["discord-prefix"] = process.env.DISCORD_PREFIX; }
if (process.env.DISCORD_TOKEN) { configfile.token = process.env.DISCORD_TOKEN; } if (process.env.DISCORD_TOKEN) { configfile.token = process.env.DISCORD_TOKEN; }
if (process.env.JELLYFIN_SERVER_ADDRESS) { configfile["server-adress"] = process.env.JELLYFIN_SERVER_ADDRESS; } if (process.env.JELLYFIN_SERVER_ADDRESS) { configfile["server-address"] = process.env.JELLYFIN_SERVER_ADDRESS; }
if (process.env.JELLYFIN_USERNAME) { configfile["jellyfin-username"] = process.env.JELLYFIN_USERNAME; } if (process.env.JELLYFIN_USERNAME) { configfile["jellyfin-username"] = process.env.JELLYFIN_USERNAME; }
if (process.env.JELLYFIN_PASSWORD) { configfile["jellyfin-password"] = process.env.JELLYFIN_PASSWORD; } if (process.env.JELLYFIN_PASSWORD) { configfile["jellyfin-password"] = process.env.JELLYFIN_PASSWORD; }
if (process.env.JELLYFIN_APP_NAME) { configfile["jellyfin-app-name"] = process.env.JELLYFIN_APP_NAME; } if (process.env.JELLYFIN_APP_NAME) { configfile["jellyfin-app-name"] = process.env.JELLYFIN_APP_NAME; }

View File

@ -6,7 +6,7 @@ const os = require("os");
var jellyfinClient; var jellyfinClient;
function init () { function init () {
jellyfinClient = new ApiClient(CONFIG["server-adress"], CONFIG["jellyfin-app-name"], "0.0.1", os.hostname(), os.hostname()); jellyfinClient = new ApiClient(CONFIG["server-address"], CONFIG["jellyfin-app-name"], "0.0.1", os.hostname(), os.hostname());
} }
function getJellyfinClient () { function getJellyfinClient () {