https://github.com/pardeike/twitchttsbot
A simple command line twitch bot written in Swift 5 using swift-nio-irc-client
https://github.com/pardeike/twitchttsbot
Last synced: about 1 year ago
JSON representation
A simple command line twitch bot written in Swift 5 using swift-nio-irc-client
- Host: GitHub
- URL: https://github.com/pardeike/twitchttsbot
- Owner: pardeike
- License: mit
- Created: 2022-05-22T15:19:03.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-22T15:34:40.000Z (about 4 years ago)
- Last Synced: 2025-02-13T20:43:27.517Z (over 1 year ago)
- Language: Swift
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TwitchTTSBot
A simple command line twitch bot written in Swift 5 using swift-nio-irc-client
This twitch bot uses swift-nio to connect to twitch with oauth and a given channel. It will speak all messages ending in an exclamation mark and has a configurable cooldown to avoid spaming.
## Dependencies (via Swift Package Manager)
- swift-nio (2.40)
- swift-nio-irc (0.8.2)
- swift-nio-irc-client (main)
- swift-nio-transportation-services (1.12)
- IGIdenticon (naster)
## Usage
```
./TwitchTTSBot CHANNELNAME OAUTHTOKEN
```
To get a OAUTHTOKEN, go to https://twitchapps.com/tmi/ and make sure you are logged in with the account the bot should use (can be your own accout if you like to).
The CHANNELNAME is just the name of your Twitch channel.
## Tested On
- macOS Monterey
- Xcode 13.4
## Simplified Implementation
Great as a starting point for your own bot.
Check out [main.swift](https://github.com/pardeike/TwitchTTSBot/blob/main/TwitchTTSBot/main.swift)