Discord forum channel to Discourse migration scripts

This repository contains scripts to migrate Discord forum channels to Discourse.

  1. discord-export exports data from Discord into a local database.
  2. discourse-import imports data from the local database into Discourse.
flowchart LR
    subgraph Discord ["Discord"]
        discordAPI[("REST API")]
    end

    subgraph LocalStorage ["Local Storage"]
        mariadbDB[("MariaDB Database")]
    end

    subgraph Discourse ["Discourse"]
        discourseImport[("Import Script")]
    end

    discordAPI -->|Export data| mariadbDB
    mariadbDB -->|Data| discourseImport

    style Discord fill:#5865F2,color:#FFFFFF
    style Discourse fill:#000000,color:#FFFFFF
    style LocalStorage fill:#f9f9f9,color:#000000
Loading

Requirements

  • Discourse server
  • A MySQL or MariaDB database with a user that has access to a database.