XGPT Last updated: 11 Jan 2024

Use Nightbot as AI chatbot powered by ChatGPT

Spice up your chat by adding an AI chatbot to your stream and make Nightbot your stream assistant. You can use this bot to get answers to your questions, help you create a stream title or raid message, or maybe just for a fun chat. This app is powered by OpenAI ChatGPT.

Examples

A couple examples, need help, info, or a fun chat?

Conversations

By default each message sent to the bot is seen as a new conversiation, however if you want to continue the previous conversation use the code at the end of the bot's message at the start of your new message.

Nightbot

Nightbot is a chat bot for Twitch, YouTube, and Trovo that allows you to automate your live stream's chat with moderation and new features, allowing you to spend more time entertaining your viewers.

Setting up Nightbot is easy, simply sign in at: nightbot.tv and click the "Join Channel" button, that's it!

When will other bots be supported?

Most likely never. By using Nightbot we can integrate our app easily and provide a one click installation for users.

Pricing

Free! This app is, and will always be free. However please read this article carefully.

This app is using the OpenAI ChatGPT API, which is not free. The costs are flexible, pay for what you use. Which means more users, higher costs.

More information here: openai.com/pricing. We use the gpt-3.5-turbo model which currectly costs $0.002 / 1K tokens. Tokens are calculated based on the amount of text that has to be processed. A helpful rule of thumb is that one token generally corresponds to ~4 characters of text for common English text. This translates to roughly ¾ of a word (so 100 tokens ~= 75 words).

Who is paying?

The community. Users who want to support this project can help cover the costs here: github.com/sponsors/xgerhard. Once we run out of tokens for the month, the app will stop working for everyone. Tokens reset on the first day of the month.

For the generous users who help keeping this app running, we added a few extra features, see Sponsors.

Sponsors

Do you, or want to, sponsor this app? Great! Head over to: github.com/sponsors/xgerhard.

Sponsors get a heart ❤️ in front of their name when using the app as recognition of their generosity.

Sponsors heart

Installation

Installation should be short and straight forwarded. Either a one click installation after signing in with Nightbot or copy paste the command in your chat.

Automatic

Sign in with Nightbot and we will handle the installation for you!

When you sign in to our dashboard you will be able to customize settings for your personal AI chatbot. Give the bot more and detailed instructions for just your stream. Provide attional information about you or your stream, so the bot can answer more specific questions. Want the bot to speak in a certain language, a certain way, include emojis, be more funny? Endless opportunities and alot of fun!

You'll also be able to use your own OpenAI API key to avoid monthly limits, which we highly recommend!

Sign in with Nightbot

Manual

Copy paste the following command in your chat:

!commands add !ai -cd=5 $(urlfetch https://xgpt.gerhard.dev/api/command?q=$(querystring))

Or:

Enter this in the command 'Message' field from your Nightbot commands dashboard:

$(urlfetch https://xgpt.gerhard.dev/api/command?q=$(querystring))

Help

Contact

Need help with the installation, any questions, or a thank you, feel free to send me a mail at: [email protected].

Contribute

The source code is viewable for everyone, have suggestions, improvements, or just curious? View this app on GitHub: GitHub.com/xgerhard/XGPT.