Send ip in private message and shorten info list
This commit is contained in:
parent
bd6a54833d
commit
96d17456b3
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ impl serenity::framework::standard::Command for IP {
|
||||||
}
|
}
|
||||||
|
|
||||||
match from_utf8(out.stdout.as_slice()) {
|
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")),
|
Err(_) => print_error!(msg.channel_id.say("error getting IP string")),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ impl serenity::framework::standard::Command for List {
|
||||||
if playlist.len() == 1 { "song" } else { "songs" }
|
if playlist.len() == 1 { "song" } else { "songs" }
|
||||||
);
|
);
|
||||||
|
|
||||||
let max_output = 5;
|
let max_output = 3;
|
||||||
|
|
||||||
for (i, song) in playlist.iter().enumerate() {
|
for (i, song) in playlist.iter().enumerate() {
|
||||||
if i < max_output {
|
if i < max_output {
|
||||||
|
|
Loading…
Reference in a new issue