Skip to content

Commit

Permalink
Removed useless function
Browse files Browse the repository at this point in the history
  • Loading branch information
ysdragon authored Jun 28, 2024
1 parent deb848a commit 5e48149
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,18 +385,6 @@ streamer.client.on('messageCreate', async (message) => {

streamer.client.login(config.token);

function parseBoolean(value: string | undefined): boolean {
if (typeof value === "string") {
value = value.trim().toLowerCase();
}
switch (value) {
case "true":
return true;
default:
return false;
}
}

async function playVideo(video: string, udpConn: MediaUdp) {
console.log("Started playing video");
udpConn.mediaConnection.setSpeaking(true);
Expand Down Expand Up @@ -557,4 +545,4 @@ async function ffmpegScreenshot(video: string): Promise<string[]> {
if (config.server_enabled) {
// run server.js
require('./server');
}
}

0 comments on commit 5e48149

Please sign in to comment.