Twitch chatbot with functionality tailored to my specific needs
Links:
- Bot channel
- Authorization URL
- Chat Overlay Server URL:
https://twitchbot.djdavid98.art:8443
Command | Description | Permissions |
---|---|---|
!game name !category name |
Set the currently played game/category for the stream Be sure to enter the full name of the game (not case-sensitive) |
Streamer & moderators |
!restart |
Restarts the bot. In case you are experiencing issues with events not being sent this may help (1 minute cooldown) | Streamer |
!chat |
List all available settings for the chat overlay | Everyone |
!chat name_color #hex |
Changes the name color displayed on the chat overlay to a custom hex color instead of your default Twitch chat color | Everyone |
!chat reset |
Reset all chat overlay settings | Everyone |
!pronouns |
Get the streamer's pronouns from the Twitch pronouns API | Everyone |
!pronouns username |
Get a specific user's pronouns from the Twitch pronouns API | Everyone |
The bot creates a socket.io server which can be connected to via its client library. The socket server supports sending the following events:
chat
- sent when a regular chat message is received in the channel from someone other than the bot (messages prefixed with!
are ignored)name: string
- the display name of the user, or if it's not available, the login namemessage: string
- the message textpronouns: string | null
- human-readable pronoun name from the Twitch pronouns APItags: ChatUserstate
- information about the message and the user sending it, comes directly from the underlying library (tmi.js Chat event) with thecolor
key potentially replaced based on the user's settings
clearChat
- sent when the chat is cleared