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, 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()

View file

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