feat: migrate from github

This commit is contained in:
2024-05-12 01:52:39 -07:00
commit 7437deab71
118 changed files with 10375 additions and 0 deletions

View File

@ -0,0 +1,10 @@
import { configs } from "@prisma/client";
export const defaultConfig: Omit<configs, "id"> = {
serverId: "",
inviteLink: "",
banAppealLink: "",
modLogChannel: "",
eventLogChannel: "",
messageReportChannel: ""
};

View File

@ -0,0 +1,12 @@
import { Action } from "../interfaces/Action";
export const EmbedColours: { [K in Action]: number } = {
ban: 0xfa000c,
softban: 0xfa9900,
kick: 0xffee00,
warn: 0x2600ff,
mute: 0xd900ff,
unmute: 0x00ff22,
unban: 0x00ff22,
note: 0x000001
};

17
src/config/Github.ts Normal file
View File

@ -0,0 +1,17 @@
export const IgnoredActors = [
"renovate[bot]",
"codeclimate[bot]",
"dependabot[bot]",
"lgtm-com[bot]",
"deepsource-autofix[bot]",
"sonarcloud[bot]",
"melody-iuvo"
];
export const ThankYou = `## Thank You
Thank you for your contribution to our project. We have reviewed your pull request and are happy to accept these changes.
Please continue to watch for issues labelled \`help wanted\`, as these will be additional opportunities to contribute.
You can also see all open issues [through our contributor tool](https://contribute.naomi.lgbt). Also, feel free to join our [Discord server](https://chat.naomi.lgbt) to chat with us and get notified when new issues are available!`;

View File

@ -0,0 +1,10 @@
import { GatewayIntentBits } from "discord.js";
export const IntentOptions = [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildModeration,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMessageReactions
];

14
src/config/LevelScale.ts Normal file
View File

@ -0,0 +1,14 @@
/**
* This config is an automatically-generated scale for mapping experience
* point values to level values.
*/
const levelScale: number[] = [];
let j = 0;
for (let i = 0; i <= 1000; i++) {
j += i * 1000;
levelScale[i] = j;
}
export default levelScale;

View File

@ -0,0 +1,15 @@
import { configs } from "@prisma/client";
export const logChannelChoices: { name: string; value: keyof configs }[] = [
{ name: "Moderation Action Log Channel", value: "modLogChannel" },
{ name: "Private Event Log Channel", value: "eventLogChannel" },
{ name: "Message Reporting Channel", value: "messageReportChannel" }
];
export const logChannelChoicesMap: {
[key: string]: string;
} = {
modLogChannel: "moderation actions",
eventLogChannel: "gateway events",
messageReportChannel: "message reports"
};

View File

@ -0,0 +1,8 @@
import { GuildPremiumTier } from "discord.js";
export const ServerUploadLimits: { [tier in GuildPremiumTier]: number } = {
0: 8000000,
1: 8000000,
2: 50000000,
3: 100000000
};