- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
while 2 > 1 do
@command = io.gets();
case @command
when 'version'
puts('0.01 Alpha for developers SUPIRPUPIRSIKRIT');
when 'register, #{@arg}'
@name = @arg;
@name = User.new;
@name.register;
@name = '';
@arg ='';
when 'login, arg '
@user = @arg;
@user.login;
@user = '';
when 'quit'
server.shutdown;
else
puts(@command);
end
end