Send ip in private message and shorten info list

This commit is contained in:
hodasemi 2018-11-23 09:17:47 +01:00
parent bd6a54833d
commit 96d17456b3
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ impl serenity::framework::standard::Command for IP {
}
match from_utf8(out.stdout.as_slice()) {
Ok(string) => print_error!(msg.channel_id.say(string)),
Ok(string) => print_error!(msg.author.direct_message(|m| m.content(string))),
Err(_) => print_error!(msg.channel_id.say("error getting IP string")),
};

View file

@ -34,7 +34,7 @@ impl serenity::framework::standard::Command for List {
if playlist.len() == 1 { "song" } else { "songs" }
);
let max_output = 5;
let max_output = 3;
for (i, song) in playlist.iter().enumerate() {
if i < max_output {