mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-04-01 01:04:16 +00:00
Updated README and Security Policy and Updated Rules Command.
This commit is contained in:
parent
44be18444f
commit
978f5270ed
3 changed files with 48 additions and 3 deletions
|
@ -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``
|
||||
|
||||
|
|
|
@ -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
41
source/commands/rules.ts
Normal 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;
|
Loading…
Add table
Reference in a new issue