I4SAB3ZORIAJOCA3KQIWVXBP4IDK3H7VUUJRTHPNGSPA7XCPJMCAC
JNH3WFMLVA7LQTESIA56TXIPGG2XD4L67XT55YTKQ7KCYHYTMBVQC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
M6OET34YASLXAXZ33UTDM5R26YZOIYC2BIGMCAQIVVKAHVWTHOPQC
5X6GHU7OPRGKRGT5PJBQOJMP3AFMM4HZQ47X5EH7DDXCTCWA6LIQC
println('${m['sender']} -> ${c['msgtype']} ${c['body']}')
body := c['body'].str() room_id := c['room_id'].str() println('${m['sender']} -> ${c['msgtype']} $body') if body.starts_with("!") { self.command(room_id, body[1..]) }
body := c['body'].str()
room_id := c['room_id'].str()
println('${m['sender']} -> ${c['msgtype']} $body')
if body.starts_with("!") {
self.command(room_id, body[1..])
}
fn (mut self Main) command(room_id string, cmd string) { self.matrix.room_say(room_id, "I hear $cmd")}
fn (mut self Main) command(room_id string, cmd string) {
self.matrix.room_say(room_id, "I hear $cmd")