Refactor codebase to use ES modules, add logger utility, and update package dependencies

This commit is contained in:
2025-02-09 14:58:31 -05:00
parent 55b4111fe3
commit 876c3daa7f
10 changed files with 471 additions and 70 deletions
+3 -3
View File
@@ -6,8 +6,8 @@
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
const { SlashCommandBuilder } = require('discord.js');
const axios = require('axios');
import { SlashCommandBuilder } from 'discord.js';
import axios from 'axios';
const config = {
webSearch: {
@@ -16,7 +16,7 @@ const config = {
},
};
module.exports = {
export default {
data: new SlashCommandBuilder()
.setName('ask')
.setDescription('Ask a question to the AI')