Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.42 KB

README.md

File metadata and controls

39 lines (31 loc) · 1.42 KB

statbot

A Discord bot that reads in posts from a given set of servers and stores it in a SQL database. This application has two parts: the listener, which ingests raw data as it arrives, and the crawler, which walks through past history of Discord messages and adds them.

This bot is designed for use with Postgres, but in principle could be used with any database that SQLAlchemy supports.

Available under the terms of the MIT License.

Requirements

You can install them all using pip by running:

pip3 install -r requirements.txt

Execution

After preparing a configuration file, (see misc/config.yaml) you can call the program as follows:

python3 -m statbot [-q] [-d] your_config_file.yaml

A sample docker-compose.yaml configuration is also provided in misc/ in case you would like to host your PostgreSQL database via Docker.

Questions

How do I use statbot as a selfbot?

You shouldn't. Each person who you collect data from must explicitly agree to it. If you are running a server you have the ability to enforce this, but that also means you may as well just use an actual bot account. We will not support forks that add selfbot support to statbot, and we will not accept patches that do so either.