Matrix bot client for Julia
This is a work in progress.
To use this, you first need to create a client:
using MatrixSynchro
client = Client("<bot account name>", "matrix.org", "<token here>")
You can then subscribe to events and create commands:
on!(client, Event.message) do info::EventInfo
# Do stuff on the event here
end
command!(client, "beep") do info::EventInfo
sendmessage!(client, info.room, "boop!")
end
command!(client, "say") do info::EventInfo, saythis::String
sendmessage(client, data.room, "$(getdisplayname(client, info.sender)) says: $saythis")
end