Skip to content

Commit

Permalink
✨ Enable lives
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Apr 25, 2021
1 parent b012059 commit 3c73be2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions base/Atlanta.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ class Atlanta extends Client {
}

this.player = new Player(this, {
leaveOnEmpty: false
leaveOnEmpty: false,
enableLive: true
});
this.player
.on("trackStart", (message, track) => {
Expand Down Expand Up @@ -114,7 +115,7 @@ class Atlanta extends Client {
.on("channelEmpty", () => {
// do nothing, leaveOnEmpty is not enabled
})
.on("error", (message, error) => {
.on("error", (error, message) => {
switch (error) {
case "NotConnected":
message.error("music/play:NO_VOICE_CHANNEL");
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"homepage": "https://github.com/Androz2091/AtlantaBot#readme",
"dependencies": {
"@discord-player/extractor": "^2.0.0",
"@discordjs/opus": "^0.5.0",
"@k3rn31p4nic/google-translate-api": "github:k3rn31p4nic/google-translate-api",
"@sentry/node": "6.2.3",
Expand All @@ -37,7 +38,7 @@
"discord-canvas": "^1.3.2",
"discord-giveaways": "^4.4.3",
"discord-paginationembed": "^2.1.0",
"discord-player": "^4.0.0",
"discord-player": "^4.0.3",
"discord.js": "^12.5.1",
"ejs": "^3.1.3",
"express": "^4.17.1",
Expand Down

0 comments on commit 3c73be2

Please sign in to comment.