Commit 3ee926ed authored by Ash's avatar Ash Committed by tec
Browse files

Betternickname

parent 37468824
use rand::Rng; use rand::seq::SliceRandom;
use serenity::{ use serenity::{
model::{channel::Message, guild::Member}, model::{channel::Message, guild::Member},
prelude::*, prelude::*,
...@@ -84,7 +84,7 @@ impl Commands { ...@@ -84,7 +84,7 @@ impl Commands {
"Unable to edit nickname: {:?}", "Unable to edit nickname: {:?}",
member.edit(&ctx.http, |m| { member.edit(&ctx.http, |m| {
m.nickname(format!( m.nickname(format!(
"{}, {}", "{}, {:?}",
name, name,
RANDOM_NICKNAMES.choose(&mut rand::thread_rng()) RANDOM_NICKNAMES.choose(&mut rand::thread_rng())
)); ));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment