Skip to content
Snippets Groups Projects
Commit 3ee926ed authored by Ash's avatar Ash Committed by tec
Browse files

Betternickname

parent 37468824
Branches
No related merge requests found
use rand::Rng;
use rand::seq::SliceRandom;
use serenity::{
model::{channel::Message, guild::Member},
prelude::*,
......@@ -84,7 +84,7 @@ impl Commands {
"Unable to edit nickname: {:?}",
member.edit(&ctx.http, |m| {
m.nickname(format!(
"{}, {}",
"{}, {:?}",
name,
RANDOM_NICKNAMES.choose(&mut rand::thread_rng())
));
......
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