Fix slowcord additional services

This commit is contained in:
Madeline 2022-09-26 15:59:13 +10:00
parent 5f46f559b7
commit 6c82ec7475
8 changed files with 5 additions and 6 deletions

1
.gitignore vendored
View File

@ -9,6 +9,5 @@ files/
config.json config.json
.vscode/settings.json .vscode/settings.json
api/assets/plugins/*.js
build build

BIN
package-lock.json generated

Binary file not shown.

Binary file not shown.

View File

@ -10,7 +10,7 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@fosscord/util": "file:../../util", "fosscord-server": "file:../..",
"fosscord-gopnik": "^1.0.0", "fosscord-gopnik": "^1.0.0",
"mysql": "^2.18.1", "mysql": "^2.18.1",
"typescript": "^4.7.4" "typescript": "^4.7.4"

View File

@ -1,7 +1,7 @@
import "dotenv/config"; import "dotenv/config";
import Fosscord from "fosscord-gopnik"; import Fosscord from "fosscord-gopnik";
import Bot from "./Bot.js"; // huh? import Bot from "./Bot.js"; // huh?
import { initDatabase } from "@fosscord/util"; import { initDatabase } from "fosscord-server/src/util";
const client = new Fosscord.Client({ const client = new Fosscord.Client({
intents: ["GUILD_MESSAGES"], intents: ["GUILD_MESSAGES"],

Binary file not shown.

View File

@ -3,6 +3,7 @@
"version": "1.0.0", "version": "1.0.0",
"description": "Slowcord login service", "description": "Slowcord login service",
"main": "build/index.js", "main": "build/index.js",
"types": "src/index.ts",
"scripts": { "scripts": {
"build": "tsc -b", "build": "tsc -b",
"start": "node build/index.js" "start": "node build/index.js"
@ -18,7 +19,7 @@
}, },
"homepage": "https://github.com/maddyunderstars/fosscord-server#readme", "homepage": "https://github.com/maddyunderstars/fosscord-server#readme",
"dependencies": { "dependencies": {
"@fosscord/util": "file:../../util", "fosscord-server": "file:../../",
"cookie-parser": "^1.4.6", "cookie-parser": "^1.4.6",
"dotenv": "^16.0.1", "dotenv": "^16.0.1",
"express": "^4.18.1", "express": "^4.18.1",

View File

@ -1,8 +1,7 @@
import "dotenv/config"; import "dotenv/config";
import express, { Request, Response } from "express"; import express, { Request, Response } from "express";
import cookieParser from "cookie-parser"; import cookieParser from "cookie-parser";
import * as util from "@fosscord/util"; import { initDatabase, generateToken, User, Config, handleFile } from "fosscord-server/src/util";
const { initDatabase, generateToken, User, Config, handleFile } = util;
import path from "path"; import path from "path";
import fetch from "node-fetch"; import fetch from "node-fetch";