Skip to content

Commit

Permalink
✨ Added Live Video Support to the Bot & Auto Leave
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaCoderr authored May 14, 2021
1 parent 10e6f06 commit 4b4de16
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion karma.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ client.commands = new Discord.Collection();
client.aliases = new Discord.Collection();

const { Player } = require('discord-player');
const player = new Player(client);
const player = new Player(client, {
enableLive: true,
autoSelfDeaf: true,
leaveOnEnd: true,
leaveOnEndCooldown: 5000,
leaveOnEmpty: true,
leaveOnStop: true
});
client.player = player;
client.emotes = require('./configs/emotes.json')
client.filters = require('./configs/filters.json');
Expand Down

0 comments on commit 4b4de16

Please sign in to comment.