tf2.rest

command module
v0.0.0-...-884e2a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

README

tf2.rest

A Team Fortress 2 Responses API built in Go.

Made by me and Captain Hippie

Endpoints

The root endpoint returns a random response.

{
    "class": "medic",
    "response": "Ze healing leaves little time for ze hurting.",
    "audioFile": "https://wiki.teamfortress.com/w/images/4/47/Medic_specialcompleted03.wav",
    "type": "Event-related Responses",
    "context": "Under the effects of an ÜberCharge"
}

The by class endpoint (scout example) returns a random response by given class.

{
    "class": "scout",
    "response": "Hey good job there, hardhat!",
    "audioFile": "https://wiki.teamfortress.com/w/images/7/79/Scout_thanksfortheteleporter02.wav",
    "type": "Event-related",
    "context": "Teleportation"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL