Fix slowcord additional services
This commit is contained in:
parent
5f46f559b7
commit
6c82ec7475
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,6 +9,5 @@ files/
|
||||
config.json
|
||||
|
||||
.vscode/settings.json
|
||||
api/assets/plugins/*.js
|
||||
|
||||
build
|
||||
|
||||
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
BIN
src-slowcord/bot/package-lock.json
generated
BIN
src-slowcord/bot/package-lock.json
generated
Binary file not shown.
@ -10,7 +10,7 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@fosscord/util": "file:../../util",
|
||||
"fosscord-server": "file:../..",
|
||||
"fosscord-gopnik": "^1.0.0",
|
||||
"mysql": "^2.18.1",
|
||||
"typescript": "^4.7.4"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import "dotenv/config";
|
||||
import Fosscord from "fosscord-gopnik";
|
||||
import Bot from "./Bot.js"; // huh?
|
||||
import { initDatabase } from "@fosscord/util";
|
||||
import { initDatabase } from "fosscord-server/src/util";
|
||||
|
||||
const client = new Fosscord.Client({
|
||||
intents: ["GUILD_MESSAGES"],
|
||||
|
||||
BIN
src-slowcord/login/package-lock.json
generated
BIN
src-slowcord/login/package-lock.json
generated
Binary file not shown.
@ -3,6 +3,7 @@
|
||||
"version": "1.0.0",
|
||||
"description": "Slowcord login service",
|
||||
"main": "build/index.js",
|
||||
"types": "src/index.ts",
|
||||
"scripts": {
|
||||
"build": "tsc -b",
|
||||
"start": "node build/index.js"
|
||||
@ -18,7 +19,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/maddyunderstars/fosscord-server#readme",
|
||||
"dependencies": {
|
||||
"@fosscord/util": "file:../../util",
|
||||
"fosscord-server": "file:../../",
|
||||
"cookie-parser": "^1.4.6",
|
||||
"dotenv": "^16.0.1",
|
||||
"express": "^4.18.1",
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
import "dotenv/config";
|
||||
import express, { Request, Response } from "express";
|
||||
import cookieParser from "cookie-parser";
|
||||
import * as util from "@fosscord/util";
|
||||
const { initDatabase, generateToken, User, Config, handleFile } = util;
|
||||
import { initDatabase, generateToken, User, Config, handleFile } from "fosscord-server/src/util";
|
||||
import path from "path";
|
||||
import fetch from "node-fetch";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user