mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-23 18:21:55 +01:00
remove unnecessary request
This commit is contained in:
parent
4cd4c0c8d0
commit
1db343778d
@ -12,12 +12,11 @@ const {audioDispatcher} = require('./dispachermanager');
|
|||||||
const {handleChannelMessage}=require('./messagehandler');
|
const {handleChannelMessage}=require('./messagehandler');
|
||||||
|
|
||||||
jellyfinClientManager.init();
|
jellyfinClientManager.init();
|
||||||
jellyfinClientManager.getJellyfinClient().getPublicSystemInfo().then((response) => {
|
//TODO Error Checking as the apiclients is inefficent
|
||||||
|
|
||||||
jellyfinClientManager.getJellyfinClient().authenticateUserByName(CONFIG["jellyfin-username"],CONFIG["jellyfin-password"]).then((response)=>{
|
jellyfinClientManager.getJellyfinClient().authenticateUserByName(CONFIG["jellyfin-username"],CONFIG["jellyfin-password"]).then((response)=>{
|
||||||
jellyfinClientManager.getJellyfinClient().setAuthenticationInfo(response.AccessToken, response.SessionInfo.UserId);
|
jellyfinClientManager.getJellyfinClient().setAuthenticationInfo(response.AccessToken, response.SessionInfo.UserId);
|
||||||
});
|
});
|
||||||
})
|
|
||||||
|
|
||||||
discordClient.on('ready', () => {
|
discordClient.on('ready', () => {
|
||||||
console.log('connected to Discord');
|
console.log('connected to Discord');
|
||||||
|
Loading…
Reference in New Issue
Block a user