generated from nhcarrigan/template
feat: migrate from github
This commit is contained in:
10
src/config/DefaultConfig.ts
Normal file
10
src/config/DefaultConfig.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { configs } from "@prisma/client";
|
||||
|
||||
export const defaultConfig: Omit<configs, "id"> = {
|
||||
serverId: "",
|
||||
inviteLink: "",
|
||||
banAppealLink: "",
|
||||
modLogChannel: "",
|
||||
eventLogChannel: "",
|
||||
messageReportChannel: ""
|
||||
};
|
12
src/config/EmbedColours.ts
Normal file
12
src/config/EmbedColours.ts
Normal 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
17
src/config/Github.ts
Normal 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!`;
|
10
src/config/IntentOptions.ts
Normal file
10
src/config/IntentOptions.ts
Normal 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
14
src/config/LevelScale.ts
Normal 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;
|
15
src/config/LogChannelChoices.ts
Normal file
15
src/config/LogChannelChoices.ts
Normal 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"
|
||||
};
|
8
src/config/ServerUploadLimits.ts
Normal file
8
src/config/ServerUploadLimits.ts
Normal 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
|
||||
};
|
Reference in New Issue
Block a user