Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

[POC] Store every message of Discord servers joined by a bot in SQLite

NotificationsYou must be signed in to change notification settings

matboivin/reporter

Repository files navigation

Store every message of Discord servers joined by a bot in a SQLite database.

Prerequisites

  • A Discord bot
  • Docker
  • Docker Compose v2
  • GNU make (optional)

Installation

  1. Get the bot token.

  2. Set.env file.

COMPOSE_PROJECT_NAME=reporterCOMPOSE_FILE=docker-compose.ymlBOT_TOKEN=# Discord bot token
  1. Build the project using either the Makefile alias or docker CLI:
$make up-build# docker compose up --build --detach

Usage

Available options:

reporter [-h] [-d] [-f filename.db]Discord bot to listen to server's messages.options:  -h, --help            show this help message and exit  -d, --debug           display debug logs  -f filename.db, --database-file filename.db                        SQLite database filename (default: 'discord.db')

Run the project:

$make up# docker compose up --detach

Stop the project:

$make stop# docker compose stop

Other common tasks can be found in the Makefile.

Database

See thedatabase diagram.

Database will be created in thelogs directory. Default database name isdiscord.db. To change it, edit the command indocker-compose.yml

Example:

services:bot:...command:["reporter", "--database-file", "myfile.db"]

The file will be available atlogs/myfile.db.

About

[POC] Store every message of Discord servers joined by a bot in SQLite

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp