Fix crop url
This commit is contained in:
parent
70cdf36d75
commit
feda6d465b
@ -251,7 +251,7 @@ Servers: {}", env!("CARGO_PKG_VERSION"), guilds)).unwrap();
|
|||||||
|
|
||||||
fn wc_crop(msg: Message) {
|
fn wc_crop(msg: Message) {
|
||||||
let url = &msg.content[8..];
|
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();
|
msg.channel_id.say(&new_url).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user