Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
custom_commands [2020/03/06 17:14] – [VIP-Exclusive Command Variables] Removed mention of the chat flags /chat, /discord, /w, \r\n as these are not variables. Have move these to the top of the page instead dante557custom_commands [2020/06/11 22:23] – [VIP-Exclusive Command Variables] expertsonline
Line 79: Line 79:
 | @ctt@[InsertCustomTweet] | This generates a link to tweet out a custom message specified. E.g. Support the stream by tweeting! <nowiki>@ctt@[Check out expertsonline @ http://twitch.tv/expertsonline playing @game@]</nowiki> | | @ctt@[InsertCustomTweet] | This generates a link to tweet out a custom message specified. E.g. Support the stream by tweeting! <nowiki>@ctt@[Check out expertsonline @ http://twitch.tv/expertsonline playing @game@]</nowiki> |
 | @customjsonapi@[URL,field] | Custom API support to get parts of a JSON object. For example to get the status for a channel using user input - @customjsonapi@[%%https://api.twitch.tv/kraken/channels/@target@[1]%%,status] (Note Twitch API requests now require you to pass a Client ID along with your request. See https://blog.twitch.tv/client-id-required-for-kraken-api-calls-afbb8e95f843#.qvtr401fh for more info) | | @customjsonapi@[URL,field] | Custom API support to get parts of a JSON object. For example to get the status for a channel using user input - @customjsonapi@[%%https://api.twitch.tv/kraken/channels/@target@[1]%%,status] (Note Twitch API requests now require you to pass a Client ID along with your request. See https://blog.twitch.tv/client-id-required-for-kraken-api-calls-afbb8e95f843#.qvtr401fh for more info) |
 +| @customjsonapi2@ | Custom API support with GET/POST capability as well as custom headers. \\ Example GET \\ @customjsonapi2@[{  "url": "https://postman-echo.com/get",  "method": "GET",  "headers": \[ "Content-Type: application/json" \],  "path": "data.args.foo1",  "showResult": "true"}] \\ Example POST \\ @customjsonapi2@[{  "url": "https://postman-echo.com/post",  "method": "POST",  "payload": { "args": { "foo1": "bar1","foo2": "bar2"}},  "headers": \[ "Content-Type: application/json" \],  "path": "data.args.foo1",  "showResult": "false"}]|
 | @datetime@[format] | Formatted date/time output. Formatting Details : https://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx | | @datetime@[format] | Formatted date/time output. Formatting Details : https://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx |
 +| @datetime@[secs] | Convert seconds to human friendly text |
 | @editpoints@ | Silently edits users' points in chat. Only runs when the command that includes this variable has User (Elevated Access) selected. E.g. @editpoints@[@user@%%|%%10] | | @editpoints@ | Silently edits users' points in chat. Only runs when the command that includes this variable has User (Elevated Access) selected. E.g. @editpoints@[@user@%%|%%10] |
 | @exec@ | Chains one or more commands from a single command. E.g. @exec@[5,!bot] will run !bot after 5 seconds. | | @exec@ | Chains one or more commands from a single command. E.g. @exec@[5,!bot] will run !bot after 5 seconds. |
Line 122: Line 124:
 | @userinfo2@[username] | Display info from the user in the user database e.g. @userinfo2@[@user@] | | @userinfo2@[username] | Display info from the user in the user database e.g. @userinfo2@[@user@] |
 | @userinfo3@[username] | Display info from the user in the user database e.g. @userinfo3@[@user@] | | @userinfo3@[username] | Display info from the user in the user database e.g. @userinfo3@[@user@] |
 +| @setuserinfo1@[username%%|%%new info] | sets info1 for the user in the user database |
 +| @setuserinfo2@[username%%|%%new info] | sets info2 for the user in the user database |
 +| @setuserinfo3@[username%%|%%new info] | sets info3 for the user in the user database |
 | @weather@[city, country code] | Checks the weather in any part of the world. E.g. @weather@[Rome, 00197] or @weather@[@target@[1], @target@[2]] | | @weather@[city, country code] | Checks the weather in any part of the world. E.g. @weather@[Rome, 00197] or @weather@[@target@[1], @target@[2]] |
 | @editvip@[user%%|%%vip_rank%%|%%+days] | Add vip to a selected user. Ei. @editvip@[@target@%%|%%3%%|%%+30] | | @editvip@[user%%|%%vip_rank%%|%%+days] | Add vip to a selected user. Ei. @editvip@[@target@%%|%%3%%|%%+30] |
 | @obs@[StartStreaming]| Use this to make deepbot start your live stream in Obs with Obs remote | | @obs@[StartStreaming]| Use this to make deepbot start your live stream in Obs with Obs remote |
 | @obs@[StopStreaming] | Use this to make deepbot stop your live stream in Obs with Obs remote | | @obs@[StopStreaming] | Use this to make deepbot stop your live stream in Obs with Obs remote |
 +| @raffleinfo@ | Shows information about the users raffle entry status |
 ---- ----