Talk to stuff, and talk to more stuff when I am less lazy
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
src
test
.appveyor.yml
.codecov.yml
.gitignore
.travis.yml
LICENSE
README.md
REQUIRE

README.md

Chatter

stable latest Build Status Build status codecov

Chatter.jl is a framework(?) for interacting with a variety of messaging platforms.

Examples

IRC

julia> using Chatter

julia> client = ChatterClient(IRC(;server="irc.freenode.net", channel="#botters-test"))
Chatter.ChatterClient(Chatter.Message[], Chatter.IRC(TCPSocket(RawFD(19) open, 0 bytes waiting)))

julia> start(client)
Task (runnable) @0x00007f3efd2b6230

julia> messages = flush!(client)
# A bunch of MOTD lines

julia> messages = get!(client; n=2)
2-element Array{Chatter.Message,1}:
 Chatter.IRCMessage("PRIVMSG #botters-test :Hello", ":averyuniquenickn!8ea07518@gateway/web/freenode/ip.142.160.117.24")
 Chatter.IRCMessage("PRIVMSG #botters-test :GitHub", ":averyuniquenickn!8ea07518@gateway/web/freenode/ip.142.160.117.24")

julia> send(client, "PRIVMSG #botters-test hello")
28

Reddit

julia> using Chatter

julia> client = ChatterClient(Subreddit("rarepuppers"))
Chatter.ChatterClient(Chatter.Message[], Chatter.Subreddit("rarepuppers", "new"))

julia> start(client)
Task (runnable) @0x00007fe850e302b0

julia> get!(client)[1]
Chatter.SubredditMessage("Doggo evolution, Peach my puppy", "https://redd.it/6rip1o")