summary refs log tree commit diff
path: root/src/system/bot/mod.rs
diff options
context:
space:
mode:
authorAshelyn Rose <git@ashen.earth>2024-11-10 12:52:02 -0700
committerAshelyn Rose <git@ashen.earth>2024-11-10 12:52:02 -0700
commit66208d1d9fcd32a88dcd9ecba13e87723812028a (patch)
treea3a080fa136c50e7d160f79c1b83a58e5d3e418d /src/system/bot/mod.rs
parent058fb241e4373e083f1ab706904bd601abbf509a (diff)
Implement nick command
Diffstat (limited to 'src/system/bot/mod.rs')
-rw-r--r--src/system/bot/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/system/bot/mod.rs b/src/system/bot/mod.rs
index 2aa3e0a..0928a73 100644
--- a/src/system/bot/mod.rs
+++ b/src/system/bot/mod.rs
@@ -62,6 +62,10 @@ impl Bot {
         self.gateway.set_status(status).await;
     }
 
+    pub async fn set_nick(&self, server_id: ServerId, nick: String) {
+        self.client.set_nick(server_id, nick.as_str()).await.expect("Could not update nick")
+    }
+
     pub fn start(&self) {
         self.gateway.start_listening()
     }