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OOXFQC
SSXL34RI3VDNBMJNHXBNORVQ7QQ2CTPXIXUNTUUMFA224DOAAKMQC
W2UG5LCJVKYGQU2ZBRIVWYY3YA4EIWKJLAJDLVAJAN5C6TRQMESAC
6L2PHVBOCBBAYDUP4WX2DUEOPDHE5SP5M3MUORP5DNO63CJZULXAC
KII5FYIKKZWX5BGWBU6DNLTRUY3HK3UJRS6XZEKJMTMRNOLPGV2AC
7MLJEICDGSP5GMTO7MRQY5SFBLEROD6LDGKBTGHSIHJVB42ZXVMAC
K7K3EWO4H75J63G3IREKSPGBVBF6LFZHD4WRKGQTWUYTYGHWQ22QC
}
pub fn (mut self Actor) setup() {
if matrix_id := self.whoami() {
self.whoami = matrix_id
self.register(self.whoami) or {}
self.user_presence(matrix_id, 'online') or {}
self.conn_state = ConnState.connected
self.joined_rooms_sync()
if self.rooms.len > 0 {
// self.room_state(rooms[0])
self.room_messages(self.rooms[0])
self.room_say(self.rooms[0], 'irc bridge started. homeserver $self.host')
}
} else {
println('matrix setup failed. please verify the matrix_host and as_token in config.json')
}
}
pub fn (mut self Actor) joined_rooms_sync() {
if rooms := self.joined_rooms() {
self.rooms.clear()
// VBUG self.rooms << rooms
for r in rooms {
self.rooms << r
}
self.cin <- 'connect'
} else {
panic('joined_rooms')
}
}
pub fn (mut self Actor) setup() {
if matrix_id := self.whoami() {
self.whoami = matrix_id
self.register(self.whoami) or {}
self.user_presence(matrix_id, 'online') or {}
self.conn_state = ConnState.connected
if rooms := self.joined_rooms() {
self.rooms.clear()
// VBUG self.rooms << rooms
for r in rooms {
self.rooms << r
}
self.cin <- 'connect'
} else {
panic('joined_rooms')
}
if self.rooms.len > 0 {
// self.room_state(rooms[0])
self.room_messages(self.rooms[0])
self.room_say(self.rooms[0], 'irc bridge started. homeserver $self.host')
}
} else {
println('matrix setup failed. please verify the matrix_host and as_token in config.json')
}