Skip to content

Commit

Permalink
Update follow-back.js to check if resolve tests issue
Browse files Browse the repository at this point in the history
Update follow-back.js to check if resolve tests issue

resolves #89
  • Loading branch information
farhan7reza7 committed Feb 1, 2024
1 parent 425e0fc commit c65986c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/follow-back.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// Importing required modules
const axios = require('axios');
require("dotenv").config();

const { TOKEN: token, USER: user } = process.env;


/**
* Module for managing followers and followings on GitHub.
Expand All @@ -24,7 +28,7 @@ const axios = require('axios');
* @param {string} yourToken - Your GitHub personal access token.
* @returns {IfFollow} An object containing functions to interact with followers and followings.
*/
function followBack(yourUsername, yourToken) {
function followBack(yourUsername=user, yourToken=token) {
//const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); // Introduce a delay between API requests

/**
Expand Down

0 comments on commit c65986c

Please sign in to comment.