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
|
config.json
|
||||||
|
|
||||||
.vscode/settings.json
|
.vscode/settings.json
|
||||||
api/assets/plugins/*.js
|
|
||||||
|
|
||||||
build
|
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": "",
|
"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"
|
||||||
|
|||||||
@ -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"],
|
||||||
|
|||||||
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",
|
"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",
|
||||||
|
|||||||
@ -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";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user