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
// By default requires a JSON file with your steam account data, | |
// defined with the PATH variable. | |
// See steamdata.json for formatting. | |
// You can just define the accounts object yourself, just make sure | |
// to use the correct property names. | |
require('console-stamp')(console, 'HH:MM:ss.l') | |
const SteamUser = require('steam-user') | |
const steamtotp = require('steam-totp') |
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) | |
}) |
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
const SteamUser = require('steam-user') // npm install steam-user | |
const MSG = `Default message.` | |
const ACCOUNT = { | |
accountName: '', | |
password: '' | |
} | |
let client = new SteamUser() |
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
// On FullHD in steam client, a custom info box is 90 spaces wide. | |
// This code WORKS, but it's ugly and not well thought out. | |
// Look at this as a proof of concept if you will. | |
const SPACE = ' ' | |
const cp = require('copy-paste') | |
const rl = require('readline').createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}) |
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
{ | |
"eins": "one", | |
"zwei": "two", | |
"drei": "three" | |
} |
NewerOlder