A teeworlds 0.7 network protocol library written in ruby
Go to file
2022-11-04 13:07:34 +01:00
lib Close connection on ctrl+c 2022-11-04 13:07:34 +01:00
.gitignore Decompress packet payload 2022-10-25 20:17:07 +02:00
Gemfile Decompress packet payload 2022-10-25 20:17:07 +02:00
README.md Close connection on ctrl+c 2022-11-04 13:07:34 +01:00
sample.rb Close connection on ctrl+c 2022-11-04 13:07:34 +01:00

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)