feat: Add AI module

ollama based ai module for more bot entertaiment
This commit is contained in:
deytenit committed 2025-06-13 14:42:08 +03:00
1 parent 63e4d85cbb
commit 534cd72444
10 files changed
+394 -2

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
import { BaseMessageOptions, EmbedBuilder, italic } from "discord.js";
import config from "$config.js";
const replies = {
response: (content: string): BaseMessageOptions => {
return { content };
},
error: (
message: string = "Sorry, I encountered an error processing your request."
): BaseMessageOptions => {
const embed = new EmbedBuilder()
.setColor(config.colors.error || "#ff0000")
.setTitle("⚠️ Error")
.setDescription(italic(message));
return { embeds: [embed] };
},
connectionError: (): BaseMessageOptions => {
const embed = new EmbedBuilder()
.setColor(config.colors.warning || "#ffaa00")
.setTitle("🔌 Connection Issue")
.setDescription(
italic("Unable to connect to the LLAMA service. Please try again later.")
);
return { embeds: [embed] };
},
historyCleared: (): BaseMessageOptions => {
const embed = new EmbedBuilder()
.setColor(config.colors.success || "#00ff00")
.setTitle("🧹 History Cleared")
.setDescription(italic("Your conversation history has been cleared."));
return { embeds: [embed] };
}
};
export default replies;