Fix public IP command

This commit is contained in:
hodasemi 2018-11-17 19:38:29 +01:00
parent 58c6a2647e
commit cc816c1ee2
2 changed files with 4 additions and 7 deletions

View file

@ -19,14 +19,9 @@ impl serenity::framework::standard::Command for IP {
msg: &serenity::model::channel::Message,
_: serenity::framework::standard::Args,
) -> ::std::result::Result<(), serenity::framework::standard::CommandError> {
let args = [
"@resolver1.opendns.com",
"AAAA",
"myip.opendns.com",
"+short",
];
let args = ["ifconfig.me"];
let out = match Command::new("dig")
let out = match Command::new("curl")
.args(&args)
.stdin(Stdio::null())
.output()

View file

@ -216,6 +216,8 @@ impl MediaData {
return false;
}
fn set_song() {}
}
impl Default for MediaData {