Skip to content

parses messages from discord channels and sends updates to telegram channels

Notifications You must be signed in to change notification settings

ttimmatti/ds-to-tg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ds-to-tg

parses messages from discord channels and sends updates to telegram channels

Db:
docker run -d --name=ds_to_tg -e POSTGRES_HOST_AUTH_METHOD=trust -e POSTGRES_USER=<user> -e POSTGRES_PASSWORD=<pass> -e POSTGRES_DB=ds_to_tg -p <port>:5432 postgres:12.5-alpine

Tables:

  1. msgs
    create table msgs(channel_id text,msg_id text,timestamp text);

  2. channels
    create table channels(channel_id text not null primary key,name text,tg_channel_id text);

Go run:

  1. sudo apt update && sudo apt install screen
  2. screen -S ds_to_tg
  3. cd <script working directory> && go run main.go
  4. Ctrl+a, D You're good to go. To view logs use: screen -r ds_to_tg, then Ctrl+a, D to exit.

Tg:

  1. Add the bot to channel
  2. Type /help
  3. Type /add <channel_id> <name>

The bot will now send updates from that Discord channel to current tg group/channel

About

parses messages from discord channels and sends updates to telegram channels

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages