Commit 30be0205 authored by Grant's avatar Grant
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+6 −0
Original line number Diff line number Diff line
node_modules
# Keep environment variables out of version control
.env

prisma/dev.db
 No newline at end of file

README.md

0 → 100644
+9 −0
Original line number Diff line number Diff line
# matrix-discord-bridge

Bridge Discord & Matrix

## Goals

1. Bridge Matrix rooms to Discord channels
2. Not: linking Matrix & Discord accounts
3. Not: encrypted rooms; we are bridging to Discord

package-lock.json

0 → 100644
+0 −0

File added.

Preview size limit exceeded, changes collapsed.

package.json

0 → 100644
+35 −0
Original line number Diff line number Diff line
{
  "name": "matrix-discord-bridge",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "dev": "tsx watch -r dotenv/config src/index.ts",
    "build": "tsc",
    "start": "node dist/index.js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "@tsconfig/recommended": "^1.0.6",
    "@types/express": "^4.17.21",
    "@types/morgan": "^1.9.9",
    "@typescript-eslint/eslint-plugin": "^7.12.0",
    "@typescript-eslint/parser": "^7.12.0",
    "dotenv": "^16.4.5",
    "eslint": "^8.57.0",
    "prettier": "^3.3.1",
    "prisma": "^5.15.0",
    "tsx": "^4.12.0",
    "typescript": "^5.4.5"
  },
  "dependencies": {
    "@prisma/client": "^5.15.0",
    "body-parser": "^1.20.2",
    "discord.js": "^14.15.3",
    "eventemitter3": "^5.0.1",
    "express": "^4.19.2",
    "morgan": "^1.10.0"
  }
}
+5 −0
Original line number Diff line number Diff line
-- CreateTable
CREATE TABLE "DiscordWebhooks" (
    "channel_id" TEXT NOT NULL PRIMARY KEY,
    "webhook_url" TEXT NOT NULL
);