Skip to content

Commit

Permalink
1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaSa1nt committed Jul 27, 2023
1 parent 1612063 commit d15410b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ var isPaused = false;
var mediaQueue = [];
var events = require('events');
var eventEmitter = new events.EventEmitter();
let client = new Revolt.Client();
let revolt = new Revolt.Client();
const wait = ms => new Promise(r => setTimeout(r, ms));

const connection = revoice.join(config.voice).then(conn => {
client.loginBot(token);
revolt.loginBot(token);
conn.on('join', () => {
conn.play(media);
})
});

client.on("messageCreate", async (message) => {
process.on('uncaughtException', function(err) {console.log('[REVOLT] ' + err);});
revolt.on("messageCreate", async (message) => {
if(!message.content.startsWith(config.prefix)) return;
command = message.content.split(" ");
switch(command[0]) {
Expand Down

0 comments on commit d15410b

Please sign in to comment.