orthros / jury-scroll

A scroll ticker with Nightbot Support! Made with <3 for JuRY

Home Page:https://juryscroll.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jury-scroll

Example Nightbot Usage

While you may want to maintain sole control over the ticker via the web page, if you want your viewers to have access (or mods etc) here is an example of a nightbot command script to call the api

$(user) set the ticker message to "$(urlfetch https://juryscroll.herokuapp.com/api/control/ea23b0d9-1ef2-4cd0-a7ad-7d945869e254/$(querystring))"

The Nightbot urlfetch API uses HTTP GET verbs as opposed to POST, hence the route.

Also if the content returned to urlfetch is null (even if the sucess code is 200), the string in pace of $(urlfetch http://...) will be [Error Connecting to WebProxy Service]. Hence returning the string to the user in the get method.

About

A scroll ticker with Nightbot Support! Made with <3 for JuRY

https://juryscroll.herokuapp.com

License:MIT License


Languages

Language:HTML 85.1%Language:JavaScript 14.9%