linted files according to linter
This commit is contained in:
@@ -17,7 +17,7 @@ module.exports = {
|
|||||||
id = interaction.options.getInteger('id');
|
id = interaction.options.getInteger('id');
|
||||||
console.log(`Profile: Looking up "${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) {
|
if (!userdata.name) {
|
||||||
console.log("Profile: Unable to resolve profile")
|
console.log("Profile: Unable to resolve profile")
|
||||||
await interaction.reply("Failed to get profile data :(").catch(console.error);
|
await interaction.reply("Failed to get profile data :(").catch(console.error);
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
const { SlashCommandBuilder } = require('discord.js');
|
const { SlashCommandBuilder } = require('discord.js');
|
||||||
const torn = require('../../torn.js');
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// yoinked right from the guide
|
// yoinked right from the guide
|
||||||
|
|
||||||
const { REST, Routes } = require('discord.js');
|
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 fs = require('node:fs');
|
||||||
const path = require('node:path');
|
const path = require('node:path');
|
||||||
|
|
||||||
|
|||||||
1
index.js
1
index.js
@@ -8,7 +8,6 @@ const state = require('./state.json');
|
|||||||
|
|
||||||
// the basic discord setup stuff yoinked from their guide
|
// the basic discord setup stuff yoinked from their guide
|
||||||
const { Client, Collection, Events, GatewayIntentBits, EmbedBuilder, Partials, MessageFlags } = require('discord.js');
|
const { Client, Collection, Events, GatewayIntentBits, EmbedBuilder, Partials, MessageFlags } = require('discord.js');
|
||||||
const { profile } = require('node:console');
|
|
||||||
const client = new Client({
|
const client = new Client({
|
||||||
intents: [
|
intents: [
|
||||||
GatewayIntentBits.Guilds,
|
GatewayIntentBits.Guilds,
|
||||||
|
|||||||
4
torn.js
4
torn.js
@@ -1,7 +1,5 @@
|
|||||||
const config = require('./config')
|
const config = require('./config')
|
||||||
module.exports = (client, torn, config, state) => {
|
module.exports = () => {};
|
||||||
//console.log(`example log ${client.user.tag}`);
|
|
||||||
};
|
|
||||||
module.exports.readyCheck = async (key) => {
|
module.exports.readyCheck = async (key) => {
|
||||||
const url = `https://api.torn.com/user/?selections=basic&key=${key}`
|
const url = `https://api.torn.com/user/?selections=basic&key=${key}`
|
||||||
const response = await fetch(url);
|
const response = await fetch(url);
|
||||||
|
|||||||
Reference in New Issue
Block a user