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,
|
||||
_: 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()
|
||||
|
|
|
@ -216,6 +216,8 @@ impl MediaData {
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
fn set_song() {}
|
||||
}
|
||||
|
||||
impl Default for MediaData {
|
||||
|
|
Loading…
Reference in a new issue