remove uwu, edit package

This commit is contained in:
Ashley Graves 2024-10-03 10:09:40 +02:00
parent 7ec7325c80
commit 7d8f331c93
3 changed files with 5 additions and 11 deletions

View file

@ -1,18 +1,15 @@
{ {
"name": "discord-alttext", "name": "discord-alttext",
"version": "1.0.0", "version": "0.0.1",
"description": "", "description": "",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {},
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "MIT",
"dependencies": { "dependencies": {
"discord.js": "^14.16.3", "discord.js": "^14.16.3",
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
"groq-sdk": "^0.7.0", "groq-sdk": "^0.7.0"
"uwuifier": "^4.2.2"
} }
} }

View file

@ -45,7 +45,7 @@ module.exports = {
"model": "llama-3.2-11b-vision-preview" "model": "llama-3.2-11b-vision-preview"
})).choices[0].message.content.trim(); })).choices[0].message.content.trim();
if (description.length < 1024) { if (description.length < 2000) {
const embed = new EmbedBuilder() const embed = new EmbedBuilder()
.setTitle(attachment.name) .setTitle(attachment.name)
.setDescription(description); .setDescription(description);

View file

@ -1,5 +1,4 @@
const { REST, Routes, Client, Collection, GatewayIntentBits, Events } = require('discord.js'); const { REST, Routes, Client, Collection, GatewayIntentBits, Events } = require('discord.js');
//const { default: Uwuifier } = require("uwuifier");
const { default: Groq } = require('groq-sdk'); const { default: Groq } = require('groq-sdk');
const path = require('node:path'); const path = require('node:path');
const fs = require('node:fs'); const fs = require('node:fs');
@ -9,9 +8,7 @@ const client = new Client({ intents: [GatewayIntentBits.Guilds] });
client.commands = new Collection(); client.commands = new Collection();
client.groq = new Groq({ apiKey: process.env.GROQ_API_KEY }); 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 commands = [];
const foldersPath = path.join(__dirname, 'commands'); const foldersPath = path.join(__dirname, 'commands');
const commandFolders = fs.readdirSync(foldersPath); const commandFolders = fs.readdirSync(foldersPath);