No description
Find a file
Bildcraft1 74b3f53212 chore: Refactor message processing logic and split output into chunks
Refactor the `process_message` function in `bot.py` to improve performance and handle longer messages. The function now appends extra characters to the base message to ensure it is always 4000 characters long. This change improves the processing of messages and prevents truncation.

In `messageCreate.js`, split the output into chunks of 2000 characters using the `splitMessage` function. This allows sending each part as a separate message, ensuring that the output is not cut off.
2024-06-06 10:19:06 +02:00
commands/utility chore: Add initial configuration files and code structure 2024-06-05 22:06:30 +02:00
events chore: Refactor message processing logic and split output into chunks 2024-06-06 10:19:06 +02:00
logs chore: Add initial configuration files and code structure 2024-06-05 22:06:30 +02:00
.eslintrc.json chore: Add initial configuration files and code structure 2024-06-05 22:06:30 +02:00
.gitignore chore: Add initial configuration files and code structure 2024-06-05 22:06:30 +02:00
bot.py chore: Refactor message processing logic and split output into chunks 2024-06-06 10:19:06 +02:00
config.example.json Add initial configuration files and code structure 2024-06-05 22:12:03 +02:00
deploy-commands.js chore: Add initial configuration files and code structure 2024-06-05 22:06:30 +02:00
deploy-globally.js Add initial configuration files and code structure 2024-06-05 22:12:03 +02:00
index.js chore: Add initial configuration files and code structure 2024-06-05 22:06:30 +02:00
package-lock.json chore: Add initial configuration files and code structure 2024-06-05 22:06:30 +02:00
package.json chore: Add initial configuration files and code structure 2024-06-05 22:06:30 +02:00
README.md Add initial configuration files and code structure 2024-06-05 22:12:03 +02:00

AI Discord Bot

Configuration (config.json)

The config.json file contains the configuration settings for your AI Discord bot. It is used to store sensitive information and customize the behavior of your bot.

Fields in config.json

  • token: The Discord bot token. This is a secret key that allows your bot to authenticate with the Discord API. Make sure to keep this token private and never share it publicly.

  • clientID: The bot userID

  • ownerID: The Discord user ID of the bot owner. This is used to restrict certain commands or actions to the bot owner only. You can find your user ID by enabling Developer Mode in Discord and right-clicking on your username.

Setting up the config.json file

Before running your bot, make sure to fill in the appropriate values for each field in the config.json file. Replace the placeholder values with your own Discord bot token, command prefix, owner ID, status message, activity type, and activity name.

Once you have filled in the necessary information, you can start your AI Discord bot and it will use the configuration settings specified in the config.json file.