Commit 310851d7 authored by tec's avatar tec
Browse files

Merge branch 'betternickname' into 'master'

Betternickname

See merge request !5
parents 37468824 3ee926ed
Pipeline #182 passed with stages
in 7 minutes and 46 seconds
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())
));
......
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