use super::ChatCommand;
pub struct MostlyYoutube {}
impl ChatCommand for MostlyYoutube {
fn new() -> Self {
MostlyYoutube {}
}
fn help(&self) -> String {
"usage: !youtube".to_string()
}
fn names() -> Vec<String> {
vec!["youtube".to_string(), "yt".to_string()]
}
fn handle(
&mut self,
api: &mut super::TwitchApiWrapper,
ctx: &twitcheventsub::MessageData,
) -> anyhow::Result<()> {
let _ = api.send_chat_message_with_reply(
"check out maxi's youtube!: https://www.youtube.com/@mostlymaxi",
Some(&ctx.message_id),
);
Ok(())
}
}