working pong-bot
This commit is contained in:
parent
5bcd7260d3
commit
16045afb21
5 changed files with 237 additions and 149 deletions
|
@ -102,7 +102,7 @@ handle_cast({game_cmd, Command, _Headers, Data}, #state { table = Table } = Stat
|
|||
ggs_table:notify(Table, self(), {game, Command, Data}),
|
||||
{noreply, State};
|
||||
|
||||
handle_cast(_Request, St) ->
|
||||
handle_cast(Request, St) ->
|
||||
{stop, unimplemented1, St}.
|
||||
|
||||
handle_info({tcp, _Socket, Data}, #state { protocol = Protocol } = State) ->
|
||||
|
|
|
@ -116,7 +116,7 @@ prettify(Args, Data) ->
|
|||
case lists:keyfind("Game-Command", 1, Args) of
|
||||
{_, Value} ->
|
||||
{game_cmd, Value, Args, Data};
|
||||
_ ->
|
||||
Other ->
|
||||
ok
|
||||
end
|
||||
end.
|
||||
|
|
Reference in a new issue