Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/megane42/twitch_translation_bot
A twitch bot who can translate twitch chat.
https://github.com/megane42/twitch_translation_bot
bot translation twitch
Last synced: 22 days ago
JSON representation
A twitch bot who can translate twitch chat.
- Host: GitHub
- URL: https://github.com/megane42/twitch_translation_bot
- Owner: megane42
- License: mit
- Created: 2020-11-07T13:16:05.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-13T10:55:14.000Z (about 4 years ago)
- Last Synced: 2024-11-07T22:12:18.295Z (2 months ago)
- Topics: bot, translation, twitch
- Language: Ruby
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Twitch Translation Bot
![image](https://user-images.githubusercontent.com/8451003/98442856-bd2be880-214a-11eb-8068-9e0bdc9dd17a.png)
## Features
- Realtime Twitch chat translation from...
- any language to `TARGET_LANGUAGE`
- but `TARGET_LANGUAGE` to `FALLBACK_LANGUAGE`## Requirements
- Twitch account for bot
- OAuth token of above bot account
- Sign in to twitch as bot account
- Access https://twitchapps.com/tmi/
- Connect
- API key for Google Cloud Translation API
- See https://translatepress.com/docs/automatic-translation/generate-google-api-key/## Usage
- Run following ruby script
```ruby
require "bundler/inline"gemfile do
source "https://rubygems.org"
gem "twitch_translation_bot", git: "https://github.com/megane42/twitch_translation_bot"
endrequire "twitch_translation_bot"
ENV["CHANNEL_NAME"] = "megane42" # Chatroom name (= twitch user name) where you want to translate
ENV["BOT_NAME"] = "megane42bot" # Bot account name
ENV["BOT_ACCESS_TOKEN"] = "oauth:*******" # Oauth token of bot account
ENV["TARGET_LANGUAGE"] = "ja" # ISO 639-1 codes
ENV["FALLBACK_LANGUAGE"] = "es" # ISO 639-1 codes
ENV["TRANSLATE_KEY"] = "*************" # API key for google cloud translation APITwitchTranslationBot::Bot.new.run
```## License
- [MIT](https://opensource.org/licenses/MIT)