kaguya v0.1.0 Kaguya.Channel
Channel GenServer, with a few utility functions for working with channels. As a GenServer, it can be called in the following ways:
- {:send, message}, where message is the message to be sent to the channel
- {:set_user, nick_string}, where the nick string is a nick with the mode prefix(+, @, etc.)
- {:get_user, nick}, where nick is the nick of the user to be returned. The Kaguya.Channel.User struct is returned
- {:del_user, nick}, where nick is the nick of the user to be deleted
Summary
Functions
Convnenience function to join the specified channel
Convnenience function to send a nickstring to a channel
Starts a channel worker with the given name and options