Jump to content
McKay Development

Recommended Posts

Posted

Hi folks, I'm trying to work with the Global Offensive API for node.js, and am rather lost.

 

Here's what I'm trying to do:

I want to log into a bot Steam account that is online when the node is running, and then monitor the match status of the account's friends. 

I'm doing this so I could have the bot friend my account and the accounts of all my friends, and then when I call function:

matchStatus('friend's steam username'); it returns what match mode they are playing in, and if they're playing a comp match, what the score is and what team they're on.

I'm going to call the method through a different node, the discord.js node. Using that api, I've set up a bot that will detect when someone types in the group chat: " matchStatus 'steam username' " and execute a function as a result. Using this, I should be able to interact with the global offensive node as long as I initiate them both in the same .js file?

I should be able to work out most of the code on my own, I'm just having trouble getting the global offensive node running in the first place with a bot account. If someone had some example code of this, it would go a long way.

 

I really appreciate any advice and help anyone on here can offer, and for taking the time to respond to this,

-L

Posted

Yes, there's nothing stopping you from running both a Discord bot and Steam bot in the same application. I don't think it's currently possible to get a friend's match status from node just yet, though.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...