Fix crop url

This commit is contained in:
Sakuhl 2018-01-12 15:57:11 +01:00
parent 70cdf36d75
commit feda6d465b

View File

@ -251,7 +251,7 @@ Servers: {}", env!("CARGO_PKG_VERSION"), guilds)).unwrap();
fn wc_crop(msg: Message) {
let url = &msg.content[8..];
let new_url = reqwest::get(&format!("https://wynncraft-autocrop.herokuapp.com/?url={}", url)).unwrap().text().unwrap();
let new_url = reqwest::get(&format!("https://wynncraft-autocrop.herokuapp.com/crop?url={}", url)).unwrap().text().unwrap();
msg.channel_id.say(&new_url).unwrap();
}