How to make custom commands on Twitch
For Mods+Add your own !commands and keyword auto-replies, with placeholders for names, dice and live channel info.
Steps
- Create a command:
!dndbot add socials Find us at twitch.tv/{channel}!. Anyone can now type!socials. - Change or remove it with
!dndbot edit socials <new text>and!dndbot remove socials; pause it with!dndbot disable socials. - Create a trigger, which fires when a word appears anywhere in chat with no
!:!trigger add "nat 20" 🎉 {user} rolled greatness!. Quote keywords with spaces. - Tune cooldowns with
!dndbot cooldown <name> <seconds>(default 5s) and!trigger cooldown <keyword> <seconds>(default 15s). - Prefer forms? Do all of this on the web dashboard.
Good to know
- Handy placeholders:
{user},{target}(first @mention),{args},{count},{random:a|b|c},{randnum:1-100},{d20},{math:(3+4)*2},{game},{title},{uptime}. Count things with$(count snacks)(adds one and shows the total) — and any placeholder can be written$(user)style too. - Custom names can't reuse a built-in command word.
More
Full command referenceAll how-to guidesNext: How to set up timed messages (timers) on Twitch