https://github.com/ilotterytea/bot
ilotterytea's twitch bot.
https://github.com/ilotterytea/bot
7tv bot chatbot handlebars insane java twitch twitch4j websocket
Last synced: 13 days ago
JSON representation
ilotterytea's twitch bot.
- Host: GitHub
- URL: https://github.com/ilotterytea/bot
- Owner: ilotterytea
- License: gpl-3.0
- Created: 2022-03-21T15:50:01.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-22T22:13:15.000Z (3 months ago)
- Last Synced: 2025-04-11T06:02:36.346Z (13 days ago)
- Topics: 7tv, bot, chatbot, handlebars, insane, java, twitch, twitch4j, websocket
- Language: Java
- Homepage: https://bot.ilotterytea.kz
- Size: 9.32 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/ilotterytea/bot/actions/workflows/build.yml)
# Huinyabot
A utility and entertainment multi-chat Twitch bot. The bot is built in Java, Gradle and uses Twitch4j as the Twitch API.
This project is for me to learn more about Java and all its tricks.## Prerequisites
+ PostgreSQL 15
+ JDK 17## Building from sources
### 1. Cloning the repo
```shell
git clone https://github.com/ilotterytea/bot.git -b 1.5.0
cd bot
```### 2. Build the source
```shell
./gradlew shadowJar
cd build/libs
```### 3. Create a configuration file (config.properties)
Replace the fields `DATABASE_NAME`, `USERNAME`, `PASSWORD`.
```properties
twitch.token=XXXXXXXXXXXXXXXXXXXXXXXX
hibernate.connection.url=jdbc:postgresql://localhost:5432/DATABASE_NAME
hibernate.connection.username=DB_USERNAME
hibernate.connection.password=DB_PASSWORD
```> The `twitch.access_token` is the bot's token received when logging into the application from the bot's account.
> Token must grant rights `moderator:read:chatters`, otherwise will not work `!massping`, `MASSPING` flag for stream
> events.
> Also, the bot must be a moderator on channels that run massping related commands.### 4. Run the bot
```shell
java -jar bot-1.5.0-all.jar
```