Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Fetches all messages for all guilds and channels where bot is added to

Notifications You must be signed in to change notification settings

TalTech-Analytics/discord-data-fetcher

Repository files navigation

Discord

Script which fetches all messages from all guilds visible when ran docker-compose-discord.yml Important: Do not change mount points, because it's hardcoded in in other docker-compose files

Sample output

  • <GUILD_ID_1>
    • <CHANNEL_ID_1>
      • channel.json
    • <CHANNEL_ID_2>
    • <CHANNEL_ID_3>
    • channels.json
  • <GUILD_ID_2>
  • <GUILD_ID_3>
  • guilds.json

And writes it to output. If given input has invalid structure then given file will be ignored

Running locally

  • Create env file from .env with your token
  • Run docker-compose -f docker-compose-discord.yml up

When developing

  • Comment out line 3 in Dockerfile-discord
  • Add all mounts from docker-compose-discord.yml to docker-compose-build-discord.yml
  • Create env file from .env with your token
  • Move docker-compose-build-discord.yml file to /analyzer/ folder
  • Run docker-compose -f docker-compose-build-discord.yml up --build

About

Fetches all messages for all guilds and channels where bot is added to

Topics

Resources

Stars

Watchers

Forks