Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
Discord Bot
Commits
3ee926ed
Commit
3ee926ed
authored
Mar 25, 2020
by
Ash
Committed by
tec
Mar 25, 2020
Browse files
Betternickname
parent
37468824
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/user_management.rs
View file @
3ee926ed
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
())
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment