Skip to content

Commit

Permalink
Merge pull request #72 from clienterrverse/es6-rewrite
Browse files Browse the repository at this point in the history
Merge pull request #71 from clienterrverse/main
  • Loading branch information
GrishMahat authored Aug 4, 2024
2 parents a14285a + ec2599a commit 448bd6e
Show file tree
Hide file tree
Showing 24 changed files with 1,088 additions and 738 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ dist
*.min.js
.vscode
my
docs
.github
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,51 @@


# Clienterrverse Bot

Clienterrverse Bot is a versatile and feature-rich Discord bot designed to enhance your server experience with advanced functionalities such as a paging system, prefix support for Slash Commands, button support, context menu support, modal support, event handling, ticket system, and more.

## Features

### 1. Paging System

Efficiently navigate through large sets of data using a robust paging system, providing seamless user experience.

### 2. Prefix Support in Slash Commands

Supports custom prefixes for commands, allowing users to personalize their command triggers.

### 3. Button Support

Integrates interactive buttons within Discord messages to create dynamic and engaging interactions.

### 4. Context Menu Support

Provides context menus for additional command interactions directly from message and user contexts.

### 5. Modal Support

Includes support for modals, enabling more complex and interactive input collection from users.

### 6. Event Handler

Advanced event handling mechanism to manage various Discord events efficiently.

### 7. Ticket System

A comprehensive ticketing system to handle user queries and issues effectively.

### 8. Select Menu Support

Incorporates select menus to allow users to choose from a list of options within a message.

### 9. Advanced Error Handler

An advanced error handling system that captures and logs errors, ensuring smooth bot operations.

### 10. Warning System

Notifies users about potential issues or rule violations within the server.

### 11. Comprehensive Documentation

Detailed documentation generated by both AI and human contributors to guide you through setup and usage.

## Directory Structure
Expand Down Expand Up @@ -74,8 +83,6 @@ package.json
SECURITY.md
```



## Contributing

1. **Fork the Repository**
Expand Down Expand Up @@ -106,4 +113,4 @@ This project is licensed under the MIT License.

## Acknowledgements

AI-powered documentation generation for providing extensive documentation support.
AI-powered documentation generation for providing extensive documentation support.
43 changes: 31 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
"date-fns": "^3.6.0",
"discord-arts": "^0.6.1",
"discord-html-transcripts": "^3.2.0",
"discord.js": "^14.15.2",
"discord.js": "^14.15.3",
"mathjs": "^12.4.2",
"mongoose": "^8.4.0",
"mongoose": "^8.5.2",
"nanoid": "^5.0.7",
"os": "^0.1.2"
},
"devDependencies": {
Expand Down
29 changes: 23 additions & 6 deletions src/commands/admin/bottestchannel.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import { SlashCommandBuilder, ChannelType, PermissionFlagsBits } from 'discord.js';
import {
SlashCommandBuilder,
ChannelType,
PermissionFlagsBits,
} from 'discord.js';

export default {
data: new SlashCommandBuilder()
.setName('bottestchannel')
.setDescription('Creates a bot-testing channel under a bot-development category for developers only'),
.setDescription(
'Creates a bot-testing channel under a bot-development category for developers only'
),
run: async (client, interaction) => {
const { guild, member } = interaction;
const developerUserIDs = ['DEVELOPER_ID']; // Replace with actual developer user IDs
Expand All @@ -21,7 +27,11 @@ export default {

try {
// Create the bot-development category if it doesn't already exist
let category = guild.channels.cache.find(c => c.name === 'bot-development' && c.type === ChannelType.GuildCategory);
let category = guild.channels.cache.find(
(c) =>
c.name === 'bot-development' &&
c.type === ChannelType.GuildCategory
);
if (!category) {
category = await guild.channels.create({
name: 'bot-development',
Expand All @@ -33,7 +43,10 @@ export default {
},
{
id: member.id,
allow: [PermissionFlagsBits.ViewChannel, PermissionFlagsBits.SendMessages],
allow: [
PermissionFlagsBits.ViewChannel,
PermissionFlagsBits.SendMessages,
],
},
],
});
Expand All @@ -51,7 +64,10 @@ export default {
},
{
id: member.id,
allow: [PermissionFlagsBits.ViewChannel, PermissionFlagsBits.SendMessages],
allow: [
PermissionFlagsBits.ViewChannel,
PermissionFlagsBits.SendMessages,
],
},
],
});
Expand All @@ -63,7 +79,8 @@ export default {
} catch (error) {
console.error('Error creating channel:', error);
await interaction.reply({
content: 'There was an error creating the channel. Please try again later.',
content:
'There was an error creating the channel. Please try again later.',
ephemeral: true,
});
}
Expand Down
Loading

0 comments on commit 448bd6e

Please sign in to comment.