title: Make a Discord Bot send a steam friend request
body: <p>I have a Bot to check the CSGO ranks of members and give them a role on a discord server.</p>
  <p>The bot wants to be added on steam right now. How can I make, that the bot steam account sends an request?</p>
  <p>This is the code:</p>
  <pre><code>steamClient.on('friendRelationship', async (sid, relationship) =&gt; {
  if (relationship === SteamUser.EFriendRelationship.Friend) { // If the relationship changes to &quot;Friend&quot; it means we are now friends
      // Find the user in our &quot;onGoing&quot; map
      var found = undefined;
      onGoing.forEach((value, key) =&gt; {
          if (value.steamid === sid.getSteamID64()) {
              found = {};
              found = { discord: key, steam: sid.getSteamID64(), channel: value.channel, message: value.message };
          }
      });
      if (found === undefined) { // This shouldn't really happen
          steamClient.removeFriend(sid);
          return;
      }
  </code></pre>