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
310851d7
Commit
310851d7
authored
Mar 25, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/user_management.rs
View file @
310851d7
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