mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-06 19:02:33 +01:00
Merge pull request #569 from Thesourtimes/master
This commit is contained in:
commit
e2b7bc7cdb
11
.github/relase_body_template.md
vendored
Normal file
11
.github/relase_body_template.md
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
Relase
|
||||||
|
===
|
||||||
|
|
||||||
|
Notes
|
||||||
|
===
|
||||||
|
|
||||||
|
Additions
|
||||||
|
===
|
||||||
|
|
||||||
|
Fixes
|
||||||
|
===
|
@ -10,7 +10,7 @@ import { initRateLimits } from "./middlewares/RateLimit";
|
|||||||
import TestClient from "./middlewares/TestClient";
|
import TestClient from "./middlewares/TestClient";
|
||||||
import { initTranslation } from "./middlewares/Translation";
|
import { initTranslation } from "./middlewares/Translation";
|
||||||
import morgan from "morgan";
|
import morgan from "morgan";
|
||||||
import { initInstance } from "./util/Instance";
|
import { initInstance } from "./util/handlers/Instance";
|
||||||
import { registerRoutes } from "@fosscord/util";
|
import { registerRoutes } from "@fosscord/util";
|
||||||
import { red } from "picocolors"
|
import { red } from "picocolors"
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ import {
|
|||||||
import { HTTPError } from "lambert-server";
|
import { HTTPError } from "lambert-server";
|
||||||
import fetch from "node-fetch";
|
import fetch from "node-fetch";
|
||||||
import cheerio from "cheerio";
|
import cheerio from "cheerio";
|
||||||
import { MessageCreateSchema } from "../routes/channels/#channel_id/messages";
|
import { MessageCreateSchema } from "../../routes/channels/#channel_id/messages";
|
||||||
|
|
||||||
// TODO: check webhook, application, system author, stickers
|
// TODO: check webhook, application, system author, stickers
|
||||||
// TODO: embed gifs/videos/images
|
// TODO: embed gifs/videos/images
|
@ -1,5 +1,5 @@
|
|||||||
import { Config } from "@fosscord/util";
|
import { Config } from "@fosscord/util";
|
||||||
import { distanceBetweenLocations, IPAnalysis } from "./ipAddress";
|
import { distanceBetweenLocations, IPAnalysis } from "../utility/ipAddress";
|
||||||
|
|
||||||
export async function getVoiceRegions(ipAddress: string, vip: boolean) {
|
export async function getVoiceRegions(ipAddress: string, vip: boolean) {
|
||||||
const regions = Config.get().regions;
|
const regions = Config.get().regions;
|
@ -20,6 +20,7 @@ import addFormats from "ajv-formats";
|
|||||||
|
|
||||||
const SchemaPath = path.join(__dirname, "..", "..", "assets", "schemas.json");
|
const SchemaPath = path.join(__dirname, "..", "..", "assets", "schemas.json");
|
||||||
const schemas = JSON.parse(fs.readFileSync(SchemaPath, { encoding: "utf8" }));
|
const schemas = JSON.parse(fs.readFileSync(SchemaPath, { encoding: "utf8" }));
|
||||||
|
|
||||||
export const ajv = new Ajv({
|
export const ajv = new Ajv({
|
||||||
allErrors: true,
|
allErrors: true,
|
||||||
parseDate: true,
|
parseDate: true,
|
||||||
@ -30,6 +31,7 @@ export const ajv = new Ajv({
|
|||||||
strict: true,
|
strict: true,
|
||||||
strictRequired: true
|
strictRequired: true
|
||||||
});
|
});
|
||||||
|
|
||||||
addFormats(ajv);
|
addFormats(ajv);
|
||||||
|
|
||||||
declare global {
|
declare global {
|
@ -1,8 +1,8 @@
|
|||||||
export * from "./Base64";
|
export * from "./utility/Base64";
|
||||||
export * from "./ipAddress";
|
export * from "./utility/ipAddress";
|
||||||
export * from "./Message";
|
export * from "./handlers/Message";
|
||||||
export * from "./passwordStrength";
|
export * from "./utility/passwordStrength";
|
||||||
export * from "./RandomInviteID";
|
export * from "./utility/RandomInviteID";
|
||||||
export * from "./route";
|
export * from "./handlers/route";
|
||||||
export * from "./String";
|
export * from "./utility/String";
|
||||||
export * from "./Voice";
|
export * from "./handlers/Voice";
|
||||||
|
@ -26,4 +26,4 @@ export * from "./Template";
|
|||||||
export * from "./User";
|
export * from "./User";
|
||||||
export * from "./VoiceState";
|
export * from "./VoiceState";
|
||||||
export * from "./Webhook";
|
export * from "./Webhook";
|
||||||
export * from "./clientRelase";
|
export * from "./ClientRelase";
|
Loading…
Reference in New Issue
Block a user