Skip to content

Instantly share code, notes, and snippets.

@IotaSpencer
Created January 26, 2016 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IotaSpencer/cc97d53996d059a8ab6e to your computer and use it in GitHub Desktop.
Save IotaSpencer/cc97d53996d059a8ab6e to your computer and use it in GitHub Desktop.
a.say \
"Ping Frequency: The number of seconds between pings from the server (90-240 recommended)
This is the frequency at which the server pings you.
You want to set this low enough that you have accurate/real connections,
but also high enough for some laggy or 'stupid' clients"
connect_pingfreq = a.ask("? ", Integer) do |q|
q.default = 240
q.in = 0..300
q.answer_or_default
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment