Skip to content

lightinasnowstorm/MatrixSynchro.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MatrixSynchro.jl

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

Releases

No releases published

Packages

No packages published

Languages