discord-keyword-bot/README.md

24 lines
575 B
Markdown
Raw Normal View History

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