ChillerDragon
6c005497d4
Thus closed #5 By deciding to support server as well. This is rebranding from teeworlds-client to teeworlds_network And thus also including a bunch of file renames
17 lines
304 B
Ruby
Executable file
17 lines
304 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
require_relative '../lib/teeworlds_client'
|
|
|
|
client = TeeworldsClient.new(verbose: false)
|
|
|
|
client.connect('localhost', 8377, detach: true)
|
|
|
|
sleep 1
|
|
client.send_chat('foo')
|
|
|
|
client.connect('localhost', 8377, detach: true)
|
|
|
|
sleep 1
|
|
client.send_chat('bar')
|