Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

What was the recommended way to convert steam_id? #18

Closed
jimmydorry opened this issue Dec 18, 2013 · 1 comment
Closed

What was the recommended way to convert steam_id? #18

jimmydorry opened this issue Dec 18, 2013 · 1 comment

Comments

@jimmydorry
Copy link
Member

What was the recommended way (easiest to implement) to convert between the 32bit and 64bit steam account id?

@jimmydorry
Copy link
Member Author

I solved this.

There was a native library that could be installed.

npm install int

Code example is:

var steamID32 = int(source).sub('76561197960265728');

bot.sendMessage(source, 'Your Account ID is: ' + steamID32.toString(), Steam.EChatEntryType.ChatMsg);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant