diff --git a/commands/utility/profile.js b/commands/utility/profile.js index 58eb35b..111838b 100644 --- a/commands/utility/profile.js +++ b/commands/utility/profile.js @@ -17,7 +17,7 @@ module.exports = { id = interaction.options.getInteger('id'); console.log(`Profile: Looking up "${id}"`) } - userdata = await torn.user.profile(id).catch(console.error); + let userdata = await torn.user.profile(id).catch(console.error); if (!userdata.name) { console.log("Profile: Unable to resolve profile") await interaction.reply("Failed to get profile data :(").catch(console.error); diff --git a/commands/utility/tasks.js b/commands/utility/tasks.js index 5b03c7b..2fe0e9c 100644 --- a/commands/utility/tasks.js +++ b/commands/utility/tasks.js @@ -1,5 +1,4 @@ const { SlashCommandBuilder } = require('discord.js'); -const torn = require('../../torn.js'); module.exports = { data: new SlashCommandBuilder() diff --git a/deploy-commands.js b/deploy-commands.js index 6991249..a1515ee 100644 --- a/deploy-commands.js +++ b/deploy-commands.js @@ -1,7 +1,7 @@ // yoinked right from the guide const { REST, Routes } = require('discord.js'); -const { client, guildId, token } = require('./config.json'); +const { client, token } = require('./config.json'); const fs = require('node:fs'); const path = require('node:path'); diff --git a/index.js b/index.js index 3d3c200..1532a10 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,6 @@ const state = require('./state.json'); // the basic discord setup stuff yoinked from their guide const { Client, Collection, Events, GatewayIntentBits, EmbedBuilder, Partials, MessageFlags } = require('discord.js'); -const { profile } = require('node:console'); const client = new Client({ intents: [ GatewayIntentBits.Guilds, diff --git a/torn.js b/torn.js index 0afc6b5..730ebde 100644 --- a/torn.js +++ b/torn.js @@ -1,7 +1,5 @@ const config = require('./config') -module.exports = (client, torn, config, state) => { - //console.log(`example log ${client.user.tag}`); -}; +module.exports = () => {}; module.exports.readyCheck = async (key) => { const url = `https://api.torn.com/user/?selections=basic&key=${key}` const response = await fetch(url);