Gossip is a shard for integrating MUDs with the Gossip inter-mud chat network.
Add this to your application's shard.yml:
dependencies:
gossip:
github: proxima/gossip-crystalrequire "gossip"
client = Gossip::Client.new "mud-name", "client-id", "client-secret"
spawn client.runclient.verbose = trueclient.player_list = ->{ ["Player1", "Player2"] }or
client.player_list = ->{ acquire_player_list_somehow(); }client.player_login.send "Player Two"
client.player_logoff.send "Player One"spawn do
loop do
msg = client.broadcast.receive
end
endTODO: tells (send/receive) TODO: reconnects, raise errors when disconnected
- Fork it (https://github.com/your-github-user/gossip-crystal/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
- proxima Christopher Lee - creator, maintainer