mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-10-18 19:35:04 +02:00
parent
02f2dbec3c
commit
56d7f0f03d
9
.env.example
Normal file
9
.env.example
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# COPY THIS AND RENAME TO .ENV WHEN YOU RUN FROM SOURCE
|
||||||
|
|
||||||
|
DISCORD_CLIENT_TOKEN=
|
||||||
|
JELLYFIN_SERVER_ADDRESS=http://0.0.0.0:8096
|
||||||
|
JELLYFIN_AUTHENTICATION_USERNAME=
|
||||||
|
JELLYFIN_AUTHENTICATION_PASSWORD=
|
||||||
|
UPDATER_DISABLE_NOTIFICATIONS=false
|
||||||
|
ALLOW_EVERYONE=false
|
||||||
|
# LOG_LEVEl=DEBUG
|
@ -197,7 +197,8 @@ export class DiscordVoiceService {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
this.voiceConnection.destroy();
|
this.voiceConnection.disconnect();
|
||||||
|
this.audioPlayer = undefined;
|
||||||
this.voiceConnection = undefined;
|
this.voiceConnection = undefined;
|
||||||
return {
|
return {
|
||||||
success: true,
|
success: true,
|
||||||
@ -214,7 +215,7 @@ export class DiscordVoiceService {
|
|||||||
);
|
);
|
||||||
|
|
||||||
connections.forEach((connection) => {
|
connections.forEach((connection) => {
|
||||||
connection.destroy();
|
connection.disconnect();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,8 +32,13 @@ export class DisconnectCommand {
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const playlist = this.playbackService.getPlaylistOrDefault();
|
||||||
|
|
||||||
|
if (playlist.hasActiveTrack()) {
|
||||||
this.discordVoiceService.stop(false);
|
this.discordVoiceService.stop(false);
|
||||||
this.playbackService.getPlaylistOrDefault().clear();
|
}
|
||||||
|
playlist.clear();
|
||||||
|
|
||||||
const disconnect = this.discordVoiceService.disconnect();
|
const disconnect = this.discordVoiceService.disconnect();
|
||||||
|
|
||||||
if (!disconnect.success) {
|
if (!disconnect.success) {
|
||||||
|
Loading…
Reference in New Issue
Block a user