Skip to content

Instantly share code, notes, and snippets.

@romovpa
Created November 15, 2018 15:44
Show Gist options
  • Save romovpa/8fdee3a34d41ff2048053377361be34f to your computer and use it in GitHub Desktop.
Save romovpa/8fdee3a34d41ff2048053377361be34f to your computer and use it in GitHub Desktop.

Usage

To ask user add the bot, get the available bot's steam_id:

GET https://gosu.ai/bot/api/get_bot/pubg
Response: 
{
    "status": 200,
    "data": {
        "bot_steam_id": "76561198393865146"
    }
}

Give user a link to the bot:

steam://friends/add/{bot_steam_id}
http://steamcommunity.com/profiles/{bot_steam_id}

Check if the user added the bot:

GET https://gosu.ai/bot/api/check_bot/{user_steam_id}/pubg

Response (success): 
{
    "status": 200,
    "data": {
        "steam_id": {user_steam_id},
        "has_bot": true
    }
}

Response (no user => no bot added)
{
    "status": 404
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment