teeworlds_network/README.md

308 B

teeworlds-client

A teeworlds 0.7 client library written in ruby

require_relative 'lib/teeworlds-client'

client = TwClient.new(verbose: false)

client.hook_chat do |msg|
  puts "chat: #{msg}"
end

Signal.trap('INT') do
  client.disconnect
end

client.connect('localhost', 8303, detach: false)