bot-example-crystal

Example chatbot for Joysticktv's API

Joystick.TV Example Bot

This is an example "Magic Word" bot that integrates with JoystickTV's Chatbot API.

NOTE: You must be over the age of 18 to create an account.

This bot will send a message to the streamer's chat when someone says the "magic word". After it's been installed by the streamer, just type that word or phrase in their chat, and you'll see the message.

Requirements

  • JoystickTV account
  • API Key
  • API Secret
  • Access to the API

For questions, join our Discord server, and ask in our #support channel

Setup

Create a .env file, and fill with the appropriate values

JOYSTICKTV_CLIENT_ID="changeme"
JOYSTICKTV_CLIENT_SECRET="changeme"
JOYSTICKTV_API_HOST="changeme"
JOYSTICKTV_HOST="changeme"

Run shards to install dependencies.

Configuring

The example "magic word" is tacos. You can change this in src/bot.cr.

Running

crystal src/main.cr

Repository

bot-example-crystal

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 2
  • over 1 year ago
  • June 1, 2023
License

MIT License

Links
Synced at

Thu, 21 Nov 2024 12:33:44 GMT

Languages