Python3 bot to post keyword messages into secondary channels.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
575 B

2 years ago
# Python Discord Keyword Bot
2 years ago
A bot that listens to a channel for messages that matches a regex and posts to a set of other channels when it matches.
2 years ago
### Requirements
python3 / pip3
### Install
copy .env.example to .env and setup your user Token in .env
2 years ago
cp .env.example .env
2 years ago
pip3 install -r requirements.txt
2 years ago
# config .env as below
2 years ago
python3 boy.py
2 years ago
### Config
.env file layout
DISCORD_TOKEN="token_from_web"
DISCORD_CHANNELS="channel_1_id,channel_2_id"
2 years ago
SOURCE_CHANNEL="channel_id_to_listen_to"
REGEX_MATCH="^.*(REGEX|TO|USE|TO|MATCH).*$"
2 years ago