Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mpomar/chatgpttotwitch
Twitch chatbot to interact with ChatGPT in your channel.
https://github.com/mpomar/chatgpttotwitch
ai chatbot chatgpt chatgpt-api chatgpt-bot openai openai-api twitch twitch-api twitch-bot twitchtv
Last synced: 25 days ago
JSON representation
Twitch chatbot to interact with ChatGPT in your channel.
- Host: GitHub
- URL: https://github.com/mpomar/chatgpttotwitch
- Owner: mpomar
- Created: 2023-12-28T11:36:44.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-01T10:33:12.000Z (12 months ago)
- Last Synced: 2024-01-02T11:29:24.491Z (12 months ago)
- Topics: ai, chatbot, chatgpt, chatgpt-api, chatgpt-bot, openai, openai-api, twitch, twitch-api, twitch-bot, twitchtv
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Language][language-shield]][language-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![LinkedIn][linkedin-shield]][linkedin-url]
[![Twitter][twitter-shield]][twitter-url]
Table of Contents
## About The Project
[FootballChatbot](https://github.com/mpomar/FootballChatbot) marked my initial venture into developing a Twitch chatbot. Motivated by the extensive use of ChatGPT, I felt compelled to embark on creating a new Twitch chatbot. The functionality is straightforward: upon executing the script, the bot joins the designated Twitch channel and monitors the chat activity. When the `!ai` command is utilized followed by a ChatGPT prompt, the bot promptly shares the generated response in the chat.
## Prerequisites
* Install Python and add to PATH
* Create and activate virtual environment
* Clone or download the repository
* Install all dependencies
* Create an account on Open AI
* Get your API key from [here](https://platform.openai.com/api-keys)## Usage
- Define the required variables in config.py
- `username` is the bot's username on Twitch
- `oauth_token` represents the Oauth Token of the Twitch bot
- `channel` is the Twitch channel that the bot will join
- `openai.api_key` must contain the Open API Key
- You may also wish to adjust certain Open AI parameters:
- `model` determines the model Open AI will utilize to generate responses
- `temperature` influences the creativity of the answers: I've set it to 0.3 to ensure informative responses rather than overly creative ones
- `max_tokens` controls the length of the answers: I've set it to 20 to maintain concise responses, keeping in mind that Open AI charges more for longer answers.
- Run main.py to launch the bot## Contributing
Any contributions are **greatly appreciated**.
If you have a suggestion that would make this better, please fork the repo and create a pull request:
1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull RequestYou can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! 🌟
## Contact
M. Pomar - [@deliverymgt](https://twitter.com/deliverymgt) - [email protected]
Project Link: [https://github.com/mpomar/ChatGPTToTwitch](https://github.com/mpomar/ChatGPTToTwitch)
## Acknowledgments
* [Twitch](https://twitch.tv/)
* [ChatGPT](https://chat.openai.com/)
* [Shields.io](https://shields.io)
* [Best-README-Template](https://github.com/othneildrew/Best-README-Template)[language-shield]: https://img.shields.io/github/languages/top/mpomar/ChatGPTToTwitch?style=for-the-badge
[language-url]: https://github.com/mpomar/ChatGPTToTwitch
[forks-shield]: https://img.shields.io/github/forks/mpomar/ChatGPTToTwitch?style=for-the-badge
[forks-url]: https://github.com/mpomar/ChatGPTToTwitch/network/members
[stars-shield]: https://img.shields.io/github/stars/mpomar/ChatGPTToTwitch?style=for-the-badge
[stars-url]: https://github.com/mpomar/ChatGPTToTwitch/stargazers
[issues-shield]: https://img.shields.io/github/issues/mpomar/ChatGPTToTwitch?style=for-the-badge
[issues-url]: https://github.com/mpomar/ChatGPTToTwitch/issues
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/manfredipomar
[twitter-shield]: https://img.shields.io/badge/-Twitter-black.svg?style=for-the-badge&logo=twitter&colorB=555
[twitter-url]: https://twitter.com/deliverymgt