diff --git a/package.json b/package.json index 02348f0..6a59213 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,15 @@ { "name": "discord-alttext", - "version": "1.0.0", + "version": "0.0.1", "description": "", "main": "src/index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, + "scripts": {}, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "discord.js": "^14.16.3", "dotenv": "^16.4.5", - "groq-sdk": "^0.7.0", - "uwuifier": "^4.2.2" + "groq-sdk": "^0.7.0" } } \ No newline at end of file diff --git a/src/commands/accessibility/describe.js b/src/commands/accessibility/describe.js index 8e21194..7ea665a 100644 --- a/src/commands/accessibility/describe.js +++ b/src/commands/accessibility/describe.js @@ -45,7 +45,7 @@ module.exports = { "model": "llama-3.2-11b-vision-preview" })).choices[0].message.content.trim(); - if (description.length < 1024) { + if (description.length < 2000) { const embed = new EmbedBuilder() .setTitle(attachment.name) .setDescription(description); diff --git a/src/index.js b/src/index.js index 190da1a..3f250fe 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,4 @@ const { REST, Routes, Client, Collection, GatewayIntentBits, Events } = require('discord.js'); -//const { default: Uwuifier } = require("uwuifier"); const { default: Groq } = require('groq-sdk'); const path = require('node:path'); const fs = require('node:fs'); @@ -9,9 +8,7 @@ const client = new Client({ intents: [GatewayIntentBits.Guilds] }); client.commands = new Collection(); client.groq = new Groq({ apiKey: process.env.GROQ_API_KEY }); -//client.uwuifier = new Uwuifier(); -// Grab all the command folders from the commands directory you created earlier const commands = []; const foldersPath = path.join(__dirname, 'commands'); const commandFolders = fs.readdirSync(foldersPath);