https://github.com/shou/chabunko
Websocket IRC bouncer and chat
https://github.com/shou/chabunko
Last synced: about 1 month ago
JSON representation
Websocket IRC bouncer and chat
- Host: GitHub
- URL: https://github.com/shou/chabunko
- Owner: Shou
- License: gpl-2.0
- Created: 2013-11-21T02:38:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-05T09:09:00.000Z (over 12 years ago)
- Last Synced: 2025-01-10T01:22:58.974Z (over 1 year ago)
- Language: Haskell
- Homepage:
- Size: 285 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Chabunko
========
A simple websocket based web chat with a planned IRC interface.
`Chasocketo.hs` is the websocket server.
`base.html` is the interface.
`Chabunko.hs` is the back-end spitting out the interface.
# Protocol
The websocket server itself can receive eight different types of commands.
## Protocol input
### Msg
"msg \ \" - "msg" followed by a space, a channel (no spaces),
another space, and then finally the contents of the message itself.
This sends a message to the server which then relays it to everyone except the
sender.
This can return a warning if the user is flooding/spamming.
### Set
"set \ \" - "set" followed by a space, then the key which cannot
contain any spaces, another space after that, and finally the data you want to
associate with the key.
This is a general way to store settings, however as an example, you can use it
to store users' avatar URLs.
### Join
### Part
### Opt
"opt \ \" - "opt" followed by a space, a channel (no spaces),
another space, and then they key which cannot contain any spaces.
Returns what has been set by every user for the specified key.
### Opts
"opts \"
Returns the keys of the stores options.
### Req
### List
"list \"
Returns the userlist for a channel.
### Ban
### End
## Protocol output