Skip to content

Instantly share code, notes, and snippets.

@Decicus
Last active October 9, 2018 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Decicus/2a28c74d178dff9a9dd1c9eaaa29f6ca to your computer and use it in GitHub Desktop.
Save Decicus/2a28c74d178dff9a9dd1c9eaaa29f6ca to your computer and use it in GitHub Desktop.
Nightbot evals and stuff

Usage

!roll will default to 🎲 USERNAME rolled NUMBER 🎲 where USERNAME will be the username/nickname of the user and NUMBER is a random number between 1-20.

!roll Hello world, this is a test. will turn into 🎲 Hello world, this is a test. rolled NUMBER 🎲. Where NUMBER is a random number between 1-20.

Command

!commands add !roll $(eval const q = decodeURIComponent(`$(querystring)`); let input = q !== '' ? q : `$(user)`;`🎲 ${input} rolled ${Math.floor(Math.random() * (20 - 1 + 1)) + 1} 🎲`)

Usage

!setmulti <streams> where <streams> is just the channel names for the ones you're streaming with, separated by a space between every channel.

Command

!commands add -a=!commands !setmulti edit !multi http://kadgar.net/live/$(channel)/$(eval const streams = '$(query)'.split(" ");streams.join("/");)

Usage

!setmulti <streams> where <streams> is just the channel names for the ones you're streaming with, separated by a space between every channel.

Command

!commands add -a=!commands !setmulti edit !multi https://multistre.am/$(channel)/$(eval const streams = '$(query)'.split(" ");const layouts = ["4", "7", "10", "14"];streams.join("/") + "/layout" + (layouts[streams.length - 1] || "") + "/";)

Usage

!shoutout <channel>, where <channel> is the channel name you want to shout out.
Moderator-only by default.

Command

!commands add -ul=moderator !shoutout Please take a moment to check out $(twitch $(touser) "{{displayName}} over at {{url}} who was last seen playing {{game}}")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment