gbans
gbans copied to clipboard
Create Generic Game Interface
Since we are quite decoupled from TF2 already we may as well just make it generalized enough for any game that supports modding + http requests. Just something simple like this should be enough for the time being. The RCON method should also be replaced with some sort of generic transport interface as well.
type GameI interface {
ParseLine(logLine string) (x, error)
Kick(sid sid) error
Ban(sid sid) error
Unban(sid sid) error
RCON(command string)
}