Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

zenith-ai

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

  • 0.0.14
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
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

  1. Message Length Limitation: If the replied message exceeds 20,000 characters, consider creating a function to send the reply in multiple parts.

  2. 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc