1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! TODO: < short message explaining command >
//!
//! TODO: usage: ```!<name> <args>```
//!
//! TODO: author: <twitch name>
use anyhow::anyhow;
use tracing::{debug, error, instrument};
use super::ChatCommand;
// TODO: rename struct
struct CommandStruct {}
// TODO: implement the ChatCommand trait for your CommandStruct
impl ChatCommand for CommandStruct {
fn new() -> Self {
Self {}
}
// TODO: add command "names"
fn names() -> Vec<String> {
vec!["<name>".to_string()]
}
// TODO: create useful help message
fn help(&self) -> String {
"usage: !<name> <args>".to_string()
}
// TODO: do stuff
#[instrument(skip(self, api))]
fn handle(
&mut self,
api: &mut super::TwitchApiWrapper,
ctx: &twitcheventsub::MessageData,
) -> anyhow::Result<()> {
}
}