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UQU73LRQQ57QC
JNH3WFMLVA7LQTESIA56TXIPGG2XD4L67XT55YTKQ7KCYHYTMBVQC
55NYCTVRAG7AFJJGNOKSB6NFFNWG5DOMCNZS2JM6EV6MUWCTD2JQC
XXOERFMY4WKJJFRB7ZJDWJPAXU5GXTREV73BJHYM2JV4EELEMKSQC
MTUQWI5MTJKHPM5DUV5ZWOGPZLTTCG5VO6G4LUTN7SU4MOYDMT6AC
HH4TTHDCAEKTNZT4VUXCSPK7KCK6B432VFU5GOWWM3EG4KMNM43AC
V7HS237PBWI3JIA2FKGHVZ6CXT2BFE6VMXGZSJD7RGD6A3U2ISGQC
SX4IAP27IQ7B5QFX74GKQYRX4IJSJTZ4CLH7EPFSJWATV7LVXR4AC
4NHACREOMGXYM2LG72ZE4QFU4UFCIFWCZXGLSCOYJ3KTUV2K33OQC
YHNJXHEFIHKZUGR22VCEZQLWR6AADOMXN4GURZXZRXOTWEOZO7AAC
BIWQWRTPVNCRRDNYWFTDP3TGL2ER6U3ESUYPRUADATHZ4N2F5YJQC
self.room_messages(rooms[0])
self.room_say(rooms[0], 'irc bridge started. homeserver $self.host')
self.room_messages(self.rooms[0])
self.room_say(self.rooms[0], 'irc bridge started. homeserver $self.host')
pub fn (mut self Actor) joined_rooms() ?[]string {
resp := self.call_get('joined_rooms') or { return []string{} }
return resp['joined_rooms'].arr().map(it.str())
pub fn (mut self Actor) joined_rooms() ?[]Room {
resp := self.call_get('joined_rooms') or { return []Room{} }
return resp['joined_rooms'].arr().map(Room{ id: it.str() })
pub fn (mut self Actor) room_say(room_id string, msg string) string {
pub fn (mut self Actor) find_room(room_id string) ?Room {
for room in self.rooms {
if room.id == room_id {
return room
}
}
return error('room not found')
}
pub fn (mut self Actor) room_say(room Room, msg string) string {
mut msg := '$self.matrix.host is ${self.matrix.conn_state}. $self.irc.networks.len irc networks connected.'
chat.say(self.out_chan, system, room, msg)
msg = '$self.irc.networks.len irc networks'
mut msg := '$self.matrix.host is ${self.matrix.conn_state} in ${self.matrix.rooms.len} rooms. $self.irc.networks.len irc networks connected.'