Skip to content
A Discord bot that DMs you when certain words are said.
Branch: main
Clone or download

Highlight bot

It DMs you when certain words are said in certain channels.

Self hosting

Instructions are for a Debian Linux host. Modify accordingly. I'll assume you have a Linux user called "bots"

$ sudo -u postgres psql
postgres=# CREATE USER bots;
postgres=# CREATE DATABASE highlight WITH OWNER bots;
postgres=# ^D
$ psql highlight -f sql/schema.sql
$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -Ur requirements.txt
$ ./

Now copy config.example.json5 to config.json5 and modify it accordingly.

To migrate the database, pip install migra, set up a database for staging, run the new schema file against that database, then just migra postgresql:///cm postgresql:///cm_migrate | psql cm for example.


Most of the documentation is used under the "use my strings idc" license. Copyright © 2019 Rapptz

As for the bot code:

Copyright © 2018 Benjamin Mintz

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You may find a copy of the GNU Affero General Public License in the file in this repository.

You can’t perform that action at this time.