ttg

command module
v0.0.0-...-182842e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 21 Imported by: 0

README

ttg

Pass users permissions from twitch to telegram chat

How it works

Self-hosted application
After you pass parameters to execute the program, bot will restrict send messages in telegram chat for new users
User must get and open link and approve that he has follow to channel

Features
  • Ability to add user to white list
  • All exising users in chat was ignored
  • The bot checks (every 30 minutes) for channel followers and update permissions to registered by bot users
How to build
  • Install golang 1.17.3
  • If you on Windows, install TDM-GCC
  • In project folder run console command
    go mod tidy
    go build .
Execute

.\ttg.exe -help
.\ttg.exe -app **** -code **** -channel leporel -group -100137328159 -host localhost -owner 7007777 -token ****

Notes

You need register twitch app and create telegram bot, add bot to group and give him admin rights
TelegramID and groupID you can get via this bot

Not tested in real world, tested on local machine host = localhost
Probably, if twitch required use https, idk, you need reverse proxy to set up https callback on twitch apps, or improve code to use certs
I assume that the application can be uploaded to heroku apps

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL