Fossabot

Fossabot

  • Documentation
  • Open Dashboard

›Variables

General

  • Introduction
  • FAQ
  • Support
  • Webhooks

Keywords

  • Introduction
  • Phrase Groups
  • Using RegExp
  • Variables

    • Autoreason

Commands

  • Introduction
  • Variables

    • Accountage
    • Banlist
    • BttvEmotes
    • Channel
    • Count
    • Countdown
    • Countup
    • Customapi
    • Downtime
    • FFZEmotes
    • Followage
    • Fromindex
    • Game
    • Indexes
    • Leagueoflegends
    • Math
    • Msgid
    • Query
    • Randint
    • References (Command Aliases)
    • Repeat
    • Rngphrase
    • Sender
    • Sendername
    • Setgame
    • Settitle
    • Subage
    • Subcount
    • Subpoints
    • Time
    • Title
    • Tweet
    • Twitchstocks
    • Uptime
    • User
    • Weather
    • Youtube

Chat Alerts

  • Introduction
  • Variables

    • Months
    • Name
    • Recipient

StreamLabs

  • Introduction
  • Variables

    • Amount
    • Cur
    • User

Live Tweets

  • Introduction
  • Variables

    • Tweet
    • URL
    • Username

Customapi

$(customapi)

Customapi allows you to get the response body of a GET request to a URL.

Parameters

This variable requires one parameter, that is the URL that you want Fossabot to request from in order to get the response

Example Output

This is extremely variable, and is whatever the URL sends back in its body, all status codes are ignored and the bot solely prints the response body.

Developers

Requests to custom APIs by Fossabot can be formatted by using headers sent with the request. The request will timeout if not completed after 5 seconds.

X-Fossabot-ChannelName - The name of the channel.

X-Fossabot-ChannelTwitchID - The ID of the channels Twitch account.

X-Fossabot-ChannelID - The internal ID of the channel given by Fossabot when joined.

X-Fossabot-IsTimer - Set to 1 if the custom API was called from within a channel timer. (If called by a timer)

X-Fossabot-SenderName - The name of the user that sent the message. (If not called by a timer)

X-Fossabot-SenderID - The ID of the senders Twitch account. (If not called by a timer)

X-Fossabot-SenderLevel - The user level of the sender. (If not called by a timer)

← CountupDowntime →
  • Parameters
  • Example Output
  • Developers
Fossabot
Docs
Getting Started (Introduction)CommandsKeywords
Stay Connected
TwitchDiscord (Support)Twitter
More
Support on PatreonTerms of ServicePrivacy Policy
© 2021, FossaDev Ltd. All rights reserved.
Registered in England and Wales (No. 12219499).