working state?

This commit is contained in:
2025-04-06 03:35:17 -04:00
parent d5cd576fcc
commit d899e8e873
6 changed files with 1583 additions and 1 deletions

9
torn.js Normal file
View File

@@ -0,0 +1,9 @@
module.exports = (client, torn, config, state) => {
//console.log(`example log ${client.user.tag}`);
};
module.exports.readyCheck = async (key) => {
const url = `https://api.torn.com/user/?selections=basic&key=${key}`
const response = await fetch(url);
const data = await response.json();
console.log(`Connected to Torn as ${data.name} [${data.player_id}]`);
};