Beta Version Announcement
Greetings everyone! This is a beta version of our bot. If you encounter any issues or need assistance with usage, please don't hesitate to reach out. Feel free to direct message me on Discord at elias79. ID: (1130583393176920095)
.
Usage Guidelines
To receive a standard reply without generating AI images or sending voice messages, set both draw
and voice
to false
. If set to true
, the function will activate, sending voice replies and generating AI images.
For triggering the bot to start drawing AI images, use drawTrigger
with specific words or phrases. For instance:
const response = await processMessage(message, { voice: false, draw: false, drawTrigger: ['create', 'رسم'] });
A usage while using messageCreate
const { processMessage } = require('zenith-ai');
const allowedChannelId = 'Channel_Id';
client.on('messageCreate', async (message) => {
if (message.author.bot || message.channel.id !== allowedChannelId) return;
const response = await processMessage(message, { voice: false, draw: true, drawTrigger: ['create', 'draw'] });
if (response && response.files) {
message.channel.send({ files: response.files });
} else {
message.channel.send(response);
}
});
Important Notes
-
Message Length Limitation: If the replied message exceeds 20,000 characters, consider creating a function to send the reply in multiple parts.
-
Voice Message Duration: Voice messages have a maximum duration of 15 seconds. To handle longer replies, you can implement a mechanism to send the continuous message in 15-second segments, ensuring a seamless experience.
Keep experimenting, and don't hesitate to contact me for any assistance!
Any Suggestions/Adjustments is needed please inform me.