summary refs log tree commit diff
path: root/src/system/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/mod.rs')
-rw-r--r--src/system/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/system/mod.rs b/src/system/mod.rs
index e2bd1ee..30850d3 100644
--- a/src/system/mod.rs
+++ b/src/system/mod.rs
@@ -341,6 +341,13 @@ impl Manager {
                 )));
             }
 
+            message_parser::ParsedMessage::Command(Command::Nick(member_id, nick)) => {
+                let member = self.bots.get(&member_id).unwrap();
+                let server_id = message.guild_id.expect("Message has no guild");
+
+                member.set_nick(server_id, nick).await;
+            }
+
             message_parser::ParsedMessage::Command(Command::UnknownCommand) => {
                 let member_id = if let Some((member_id, _)) = self.latch_state {
                     member_id