Liking cljdoc? Tell your friends :D

matrix-clj.matrix.streams

Functions for processing streams of EDN

Functions for processing streams of EDN
raw docstring

count-invitesclj

(count-invites evs)

Given an event stream, returns the count of invites (Presuming only invites to this bot will show up in the stream!)

Given an event stream, returns the count of invites
(Presuming only invites to this bot will show up in the stream!)
raw docstring

count-mentionsclj

(count-mentions bot-name evs)

Given an event stream, returns the count of mentions of cthulhu

Given an event stream, returns the count of mentions of cthulhu
raw docstring

event-contains?clj

(event-contains? target ev)

GIven a matrix event, returns true if the body of the event contains the target string

GIven a matrix event, returns true if the body of the event contains the target string
raw docstring

is-invite?clj

(is-invite? ev)

Given a matrix event, returns true if it is an invite event

Given a matrix event, returns true if it is an invite event
raw docstring

rooms-matching-filterclj

(rooms-matching-filter event-type filter-fn stream)

Tiven an event type, a function to filter on that takes an event stream, and a stream, returns the names of the rooms that match the filter.

Tiven an event type, a function to filter on that takes an event stream, and a stream,
returns the names of the rooms that match the filter.
raw docstring

stream->invitesclj


stream->mentionsclj

(stream->mentions bot-name stream)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close