diff options
author | Ashelyn Rose <git@ashen.earth> | 2024-11-10 12:52:02 -0700 |
---|---|---|
committer | Ashelyn Rose <git@ashen.earth> | 2024-11-10 12:52:02 -0700 |
commit | 66208d1d9fcd32a88dcd9ecba13e87723812028a (patch) | |
tree | a3a080fa136c50e7d160f79c1b83a58e5d3e418d /src/system/bot/mod.rs | |
parent | 058fb241e4373e083f1ab706904bd601abbf509a (diff) |
Implement nick command
Diffstat (limited to 'src/system/bot/mod.rs')
-rw-r--r-- | src/system/bot/mod.rs | 4 |
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() } |