1.5 KiB
1.5 KiB
Watchdog
Discord bot that logs joins and leaves to a server's system messages channel.
Requires:
- Python 3.6+
- discord.py
Installation:
Linux
This guide assumes you've downloaded Python 3.6 or later and added Python to PATH.
- Clone the repo.
$ git clone https://git.tcp.direct/nameless/watchdog $ cd watchdog
- Create a Discord bot account, grant the members intents, and invite the bot (guide)
- Rename the file
.env.example
to.env
and fill it with appropriate values- If you can't find
.env.example
because it's hidden, enable hidden files on your operating system or create a new text file named.env
, then copy the contents of this file and replace the placeholder with its respective value. - If you're on Windows and cannot save the file as
.env
, save it as.env.
instead (this only applies to Windows!)
- If you can't find
- Update pip, install pipenv, and install dependencies using pipenv
$ pip install -U pip $ pip install pipenv $ pipenv install
- pip and pipenv can also be managed by your system's package manager if preferred.
- Go to the Overview section in your server settings and set the system messages channel.
- It is recommended to disable random welcome messages.
- Start the bot
$ pipenv run watchdog