Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

zenith-ai

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

zenith-ai

A versatile AI library for Discord bots, offering features such as image text extraction, voice support, translation capabilities, and AI image generation.

unpublished
latest
npmnpm
Version
0.0.14
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 15 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts