Updated README and Security Policy and Updated Rules Command.

This commit is contained in:
Ahmad 2024-01-06 22:12:47 -05:00
parent 44be18444f
commit 978f5270ed
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
3 changed files with 48 additions and 3 deletions

View file

@ -1,6 +1,9 @@
# poixpixel-discord-bot
# Poixpixel's Discord Bot
> [!WARNING]
> This project **IS NOT** ready for production use and is still very buggy. This is just a **early prototype** and most things **will change in the future**.
> [!INFO]
> Want to see the bot in action? Join the [Poixpixel Discord Server](https://discord.gg/KRTGjxx7gY)
Install: ``yarn install``

View file

@ -1,7 +1,8 @@
# Security Policy
# NOTE: Expect this polocy to change
> [!NOTE]
> Expect this policy to change in the future.
## Reporting a Vulnerability
If you notice a vulnerability in the project, please imidiatly report it to [me](mailto:ahmad.khan60@outlook.com)
If you notice a vulnerability in the project, please immediately report it to [me](mailto:ahmad.khan60@outlook.com)

41
source/commands/rules.ts Normal file
View file

@ -0,0 +1,41 @@
import {
SlashCommandBuilder,
CommandInteraction,
EmbedBuilder,
} from "discord.js";
interface Command {
data: Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">;
execute: (interaction: CommandInteraction) => Promise<void>;
}
const rulesEmbed = new EmbedBuilder()
.setColor(0x0099ff)
.setTitle("Server Rules")
.setAuthor({ name: "Poixixel", iconURL: "https://cdn.discordapp.com/avatars/1052017329376071781/922947c726d7866d313744186c42ef49.webp" })
.setDescription("These are the rules for the server. Please read and follow them carefully.")
.addFields(
{ name: "Rule #1: Be respectful", value: "This means no mean, rude, or harassing comments. Treat others the way you want to be treated." },
{ name: '\u200B', value: '\u200B' },
{ name: "Rule #2: No inappropriate language", value: "All profanity language is prohibited in this server. Any derogatory language towards any user is prohibited. Swearing is not permitted in any channels." },
{ name: '\u200B', value: '\u200B' }
//TODO Add all the rest of Poixpixel's rules here
)
.setTimestamp()
.setFooter({
text: "Sent by the Poixpixel Bot",
iconURL: "https://cdn.discordapp.com/avatars/1052017329376071781/922947c726d7866d313744186c42ef49.webp",
});
const command: Command = {
data: new SlashCommandBuilder()
.setName("rules")
.setDescription("Sends the server rules"),
execute: async (interaction) => {
const channel = interaction.channel;
channel?.send({ embeds: [rulesEmbed] });
await interaction.reply(`Here are the server rules:`);
},
};
export default command;