A small pet project to dive into Golang language. The name was taken from random name that gives Github when create a new repository, sorry for my lack of creativity.
It stores posts from Reddit into MongoDB collections. Then the posts can be posted to Telegram channels.
It needs ffmpeg to merge video and audio files from Reddit as they send it separately.
-
Copy
config/config.example.yml
toconfig/config.yml
and change your MongoDB data and Telegram API ket. -
Build the code and execute with any of this flags:
- -addchan: prompts for data to store a Telegram channel.
- -addsub: prompts for data to store a Subreddit to save its posts
- -fetch: fetch and store posts from stored subreddits.
- -publish: send stored and unpublished posts from MongoDB to stored Telegram channels. Use -num
<int>
to change the number of posts to send.
- The user input of prompts is not validated, so if you type incorrect values it will fail.
- If more than one Telegram channel has the same subreddit than another Telegram channel its posts won't be send as the previous channel has already set the posts as sent.
- Lack of tests.
- It only sends posts with videos.