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-crystal
require "gossip"
client = Gossip::Client.new "mud-name", "client-id", "client-secret"
spawn client.run
client.verbose = true
client.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
end
TODO: 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