mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-04-02 09:44:14 +00:00
Updated Rules and Config Path
This commit is contained in:
parent
c27f1aaba5
commit
7541a6a195
5 changed files with 71 additions and 11 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
target/
|
target/
|
||||||
node_modules/
|
node_modules/
|
||||||
source/config.json
|
config.json
|
||||||
.vscode
|
.vscode
|
|
@ -2,7 +2,6 @@ import {
|
||||||
SlashCommandBuilder,
|
SlashCommandBuilder,
|
||||||
CommandInteraction,
|
CommandInteraction,
|
||||||
EmbedBuilder,
|
EmbedBuilder,
|
||||||
CommandInteractionOptionResolver ,
|
|
||||||
} from "discord.js";
|
} from "discord.js";
|
||||||
|
|
||||||
interface Command {
|
interface Command {
|
||||||
|
@ -23,17 +22,75 @@ const rulesEmbed = new EmbedBuilder()
|
||||||
)
|
)
|
||||||
.addFields(
|
.addFields(
|
||||||
{
|
{
|
||||||
name: "Rule #1: Be respectful",
|
name: "**Rule #1: Be respectful**",
|
||||||
value:
|
value:
|
||||||
"This means no mean, rude, or harassing comments. Treat others the way you want to be treated.",
|
"Treat everyone with kindness. No harassment, bullying, hate speech, or toxic behavior.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Rule #2: No inappropriate language",
|
name: "**Rule #2: Keep it Family-Friendly**",
|
||||||
value:
|
value:
|
||||||
"All profanity language is prohibited in this server. Any derogatory language towards any user is prohibited. Swearing is not permitted in any channels.",
|
"No explicit content, including NSFW images, language, or discussions. This is a safe space for everyone.",
|
||||||
},
|
},
|
||||||
{ name: "\u200B", value: "\u200B" }
|
{
|
||||||
//TODO Add all the rest of Poixpixel's rules here
|
name: "**Rule #3: Use Common Sense**",
|
||||||
|
value:
|
||||||
|
"Think before you act or post. If something seems questionable, it’s probably best not to do it.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "**Rule #4: No Spamming**",
|
||||||
|
value:
|
||||||
|
"Avoid excessive messages, emoji use, or CAPS LOCK. Keep the chat clean and readable.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "**Rule #5: No Raiding**",
|
||||||
|
value:
|
||||||
|
"Do not disrupt the server or other servers with spam, unwanted content, or malicious behavior.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "**Rule #6: No Self-Promotion**",
|
||||||
|
value:
|
||||||
|
"Do not advertise your own content or other servers without permission from staff.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "**Rule #7: No Impersonation**",
|
||||||
|
value:
|
||||||
|
"Do not pretend to be someone else, including staff or other members.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "**Rule #8: No Violence**",
|
||||||
|
value:
|
||||||
|
"Do not post or share content that is offensive, harmful, or contains violent or dangerous content.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "**Rule #9: No Doxxing or Sharing Personal Information**",
|
||||||
|
value:
|
||||||
|
"Protect your privacy and the privacy of others. Do not share personal details.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "**Rule #10: No Ping Abuse**",
|
||||||
|
value:
|
||||||
|
"Do not ping staff members unless it's absolutely necessary. Use pings responsibly for all members.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "**Rule #11: Use Appropriate Channels**",
|
||||||
|
value:
|
||||||
|
"Post content in the right channels. Off-topic content may be moved or deleted.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "**Rule #12: Follow Discord's ToS and Community Guidelines**",
|
||||||
|
value:
|
||||||
|
"All members must adhere to Discord’s Terms of Service and Community Guidelines.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "**Rule #13: Moderator Discretion**",
|
||||||
|
value:
|
||||||
|
"Moderators reserve the right to moderate at their discretion. If you feel mistreated, please DM another moderator or admin.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "**Disclaimer:**",
|
||||||
|
value:
|
||||||
|
"**These rules may be updated at any time. It is your responsibility to review them regularly. Moderators and admins have the authority to enforce these rules and take appropriate action.**",
|
||||||
|
}
|
||||||
)
|
)
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({
|
.setFooter({
|
||||||
|
@ -49,7 +106,10 @@ const command: Command = {
|
||||||
execute: async (interaction) => {
|
execute: async (interaction) => {
|
||||||
const channel = interaction.channel;
|
const channel = interaction.channel;
|
||||||
channel?.send({ embeds: [rulesEmbed] });
|
channel?.send({ embeds: [rulesEmbed] });
|
||||||
await interaction.reply({ content: 'The Rules Were Sent in the Current Channel', ephemeral: true });
|
await interaction.reply({
|
||||||
|
content: "The Rules Were Sent in the Current Channel",
|
||||||
|
ephemeral: true,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { Client, Collection, Events, GatewayIntentBits } from "discord.js";
|
import { Client, Collection, Events, GatewayIntentBits } from "discord.js";
|
||||||
import config from "./config.json" assert { type: "json" };
|
|
||||||
import { deployCommands } from "./util/deployCommand.js";
|
import { deployCommands } from "./util/deployCommand.js";
|
||||||
|
|
||||||
|
const config = JSON.parse(fs.readFileSync('./config.json', 'utf8'));
|
||||||
const { token } = config;
|
const { token } = config;
|
||||||
|
|
||||||
const client: any = new Client({ intents: [GatewayIntentBits.Guilds] });
|
const client: any = new Client({ intents: [GatewayIntentBits.Guilds] });
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { REST, Routes } from 'discord.js';
|
import { REST, Routes } from 'discord.js';
|
||||||
import config from '../config.json' assert { type: 'json' };
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
|
const config = JSON.parse(fs.readFileSync('./config.json', 'utf8'));
|
||||||
const { token, clientId, guildId } = config;
|
const { token, clientId, guildId } = config;
|
||||||
|
|
||||||
const __dirname = path.resolve();
|
const __dirname = path.resolve();
|
||||||
|
|
Loading…
Add table
Reference in a new issue