remove unnecessary request

This commit is contained in:
KGT1 2020-09-21 04:43:37 +02:00
parent 4cd4c0c8d0
commit 1db343778d

View File

@ -12,12 +12,11 @@ const {audioDispatcher} = require('./dispachermanager');
const {handleChannelMessage}=require('./messagehandler');
jellyfinClientManager.init();
jellyfinClientManager.getJellyfinClient().getPublicSystemInfo().then((response) => {
jellyfinClientManager.getJellyfinClient().authenticateUserByName(CONFIG["jellyfin-username"],CONFIG["jellyfin-password"]).then((response)=>{
//TODO Error Checking as the apiclients is inefficent
jellyfinClientManager.getJellyfinClient().authenticateUserByName(CONFIG["jellyfin-username"],CONFIG["jellyfin-password"]).then((response)=>{
jellyfinClientManager.getJellyfinClient().setAuthenticationInfo(response.AccessToken, response.SessionInfo.UserId);
});
})
});
discordClient.on('ready', () => {
console.log('connected to Discord');