From 66208d1d9fcd32a88dcd9ecba13e87723812028a Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sun, 10 Nov 2024 12:52:02 -0700 Subject: Implement nick command --- src/system/bot/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/system/bot/mod.rs') 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() } -- cgit 1.4.1