Fix public IP command
This commit is contained in:
parent
58c6a2647e
commit
cc816c1ee2
2 changed files with 4 additions and 7 deletions
|
@ -19,14 +19,9 @@ impl serenity::framework::standard::Command for IP {
|
||||||
msg: &serenity::model::channel::Message,
|
msg: &serenity::model::channel::Message,
|
||||||
_: serenity::framework::standard::Args,
|
_: serenity::framework::standard::Args,
|
||||||
) -> ::std::result::Result<(), serenity::framework::standard::CommandError> {
|
) -> ::std::result::Result<(), serenity::framework::standard::CommandError> {
|
||||||
let args = [
|
let args = ["ifconfig.me"];
|
||||||
"@resolver1.opendns.com",
|
|
||||||
"AAAA",
|
|
||||||
"myip.opendns.com",
|
|
||||||
"+short",
|
|
||||||
];
|
|
||||||
|
|
||||||
let out = match Command::new("dig")
|
let out = match Command::new("curl")
|
||||||
.args(&args)
|
.args(&args)
|
||||||
.stdin(Stdio::null())
|
.stdin(Stdio::null())
|
||||||
.output()
|
.output()
|
||||||
|
|
|
@ -216,6 +216,8 @@ impl MediaData {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn set_song() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for MediaData {
|
impl Default for MediaData {
|
||||||
|
|
Loading…
Reference in a new issue