Created
August 1, 2017 20:49
-
-
Save fs-c/6acfd604402edfb13880cc97a395cfaa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client.on('loggedOn', details => { | |
console.log(`Logged on with ${client.steamID.getSteamID64()}.`) | |
client.setPersona(SteamUser.EPersonaState.Online) | |
client.gamesPlayed([730]) // Set game to csgo. | |
client.on('friendMessage', (steamID, message) => { | |
console.log(config.options.chatResponse.commands[message]) | |
client.chatMessage(id, config.options.chatResponse.unknownCommand) | |
}) | |
client.on('error', (err) => console.log(`Error: ${err.message}.`)) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment