refactor caching to be better , uhh changed some things to v2,,,, other things?

This commit is contained in:
2026-01-12 10:06:40 -05:00
parent d00d5bb313
commit 3b8aeff340
7 changed files with 112 additions and 141 deletions

View File

@@ -5,13 +5,13 @@ module.exports = {
data: new SlashCommandBuilder()
.setName('profile')
.setDescription('Get your Torn profile')
.addIntegerOption(option =>
.addIntegerOption(option =>
option.setName('id')
.setDescription('User ID')),
.setDescription('User ID')),
async execute(interaction) {
let id
if (!interaction.options.getInteger('id')) {
id = await torn.self.id()
id = torn.self.player_id
console.log(`Profile: Looking up "${id}"`)
} else {
id = interaction.options.getInteger('id');