Added readme and license
This commit is contained in:
+6
-3
@@ -10,7 +10,7 @@ use songbird::input::HlsRequest;
|
||||
use songbird::input::Input;
|
||||
use songbird::tracks::TrackHandle;
|
||||
use std::collections::HashMap;
|
||||
use std::env;
|
||||
use std::io;
|
||||
use std::process::Command;
|
||||
use std::process::Stdio;
|
||||
use std::sync::Arc;
|
||||
@@ -105,7 +105,7 @@ impl EventHandler for Handler {
|
||||
}
|
||||
}
|
||||
};
|
||||
let output = Command::new("yt-dlp")
|
||||
let output = Command::new("./assets/yt-dlp")
|
||||
.args(["-f", "bestaudio", "-g", &url])
|
||||
.stdout(Stdio::piped())
|
||||
.output()
|
||||
@@ -160,7 +160,10 @@ async fn main() {
|
||||
This program comes with ABSOLUTELY NO WARRANTY\n
|
||||
This is free software, and you are welcome to redistribute it under certain conditions.");
|
||||
updator::update().await;
|
||||
let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment");
|
||||
println!("Please paste in your bot token");
|
||||
let mut input = String::new();
|
||||
io::stdin().read_line(&mut input).expect("Failed to read line");
|
||||
let token = input.trim();
|
||||
let intents = GatewayIntents::GUILD_MESSAGES
|
||||
| GatewayIntents::GUILDS
|
||||
| GatewayIntents::DIRECT_MESSAGES
|
||||
|
||||
Reference in New Issue
Block a user