readable logs pog
This commit is contained in:
2
torn.js
2
torn.js
@@ -6,7 +6,7 @@ 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}]`);
|
||||
console.log(`Torn: Connected as ${data.name} [${data.player_id}]`);
|
||||
};
|
||||
module.exports.test = async () => {
|
||||
const url = `https://api.torn.com/user/?selections=basic&key=${config.torn}`
|
||||
|
||||
Reference in New Issue
Block a user