gbans icon indicating copy to clipboard operation
gbans copied to clipboard

Create Generic Game Interface

Open leighmacdonald opened this issue 3 years ago • 0 comments

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)
}

leighmacdonald avatar Apr 23 '21 18:04 leighmacdonald