Skip to content

sleroq/reactor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactor

:>

Reactor is a user-bot that helps you discover the most popular memes and posts from any chat or channel. It tracks how many people react or reply to each message and sends the ones that reach a certain threshold to your channel. You can set the threshold and choose whether to use emoji or reply counts as criteria. With Reactor, you’ll never miss a viral meme again!

Features

  • Monitor any chat or channel for reactions
  • Forward messages with enough replies/reactions to your channel
  • Customize the threshold for forwarding messages
  • Use emoji reactions or reply counts as criteria

Installation

To install Reactor, you need to have Go installed on your system. Then, follow these steps:

  1. Clone this repository: git clone https://github.com/sleroq/reactor.git
  2. Change directory to the project folder: cd reactor
  3. Create configuration file: cp scripts/env.bash.example scripts/env.bash
  4. Start the bot: ./scripts/run.bash

Configuration

Before running the bot, you need to create a configuration file named scripts/env.bash in scripts folder as the executable. The configuration file should have the following variables:

export REACTOR_PHONE=""
export REACTOR_APP_ID=""
export REACTOR_APP_HASH=""
export REACTOR_SESSION_DIR=./session
export REACTOR_CHAT_IDS="123123,23123"
export REACTOR_CHANNEL_ID=""
export REACTOR_CHANNEL_ACCESS_HASH=""

You can obtain your Telegram API ID and API hash from here. You can get your Telegram chat/channel ID by from updates or by using other bots.

Usage

  • How to not get banned?
  • How to change forward thresholds? export REACTOR_TEXT_THRESHOLD=31 export REACTOR_PHOTO_THRESHOLD=23 export REACTOR_FORWARD_THRESHOLD=23
  • Don't remove author for some channels/users export REACTOR_NOQUOTE_WHITELIST="123123,233424"

Licence

This project is licensed under the GPL-3.0-or-later - see the LICENSE file for details.