Coder Social home page Coder Social logo

quer / the-steam-awards Goto Github PK

View Code? Open in Web Editor NEW
94.0 17.0 13.0 1.17 MB

Steam multi account module/event (get updates when event for steam)

JavaScript 100.00%
steam steam-awards steambot steam-client steam-api steam-community steam-account steam-event bot

the-steam-awards's Introduction

Quer's Guide to Bots on Steam

Steam Donate Steam Profile

This project is to do multiple actions at once on Steam, whit multiple steam account

Status on project

Steam have change how the login, to get cookies and sessionid. I have change the login system to use node-steam-user, I doent like the change, as it remove some controll. As i do ensure there is no way to pass the steam limits. But as it handle the login request, outside the request handler i have. it can for some reach the limit. This do only effect the cluster mode, when it running multi account at once. So just run a smaller amount at the time.

So you have to do npm i, to get the new node module.

!Note: Only 2fa works. if you uses a other flow, do fork this, or contact me, to get it added. !Note: i have tested a handfull of the modules, to ensure it works are the changed. Not all is tested, so do report back if one do not work.

Im an looking into it, read more in issue : #70

Read the wiki for details

More details in the wiki, on how to setup, and use modules.

The complete module list is in the wike.

The steam events on multiple accounts

Just add more accounts in the config.

Modules ( snippet )

read about each module in the wiki, on how to use!

  • change profile settings
    • change setting on the general edit page (Edit Profile / chanceAccountSettings_general)
    • change profile avatar, from the games that it own
    • change profile background
    • change mini profile
    • change profile theme
    • change profile favorite badge
    • change profile favorite group
  • clear profile name alias
  • change profile image
  • vote and like a guide
  • join group
  • LeaveGroup ( can also remove all groups from each account )
  • Comment in a Guide
  • add game to WishList
  • comment on a profile
  • game Recommend
  • run queue
  • ActivateFreeGame
  • remove all game from wishlist
  • Give Awared/Rewards
  • Create badge
  • Follow Games
  • Unfollow Games
  • Follow Curators
  • UnFollow Curators
  • Evaluating Game Review
  • view broadcast
  • Group Announcement Comment Add
  • Group Announcement Comment Delete
  • Group Announcement Rate

Events

Events modules are stored in modules/events

  • spring cleaning (set 'day' in js file. this will run for that day, it made to insure it only run once a day.)
  • winter-sale-door-opener
  • winter-sale-vote
  • steam Award Nominate Game
  • lunar New Year Sale Tokens (2019)
    • will get the tokens
    • and buy for the tokens default 1000 edit to use more
    • will get same amount of all bg and Emoticon
  • the game awards - 2019
  • the steam awards - winter 2019
  • the steam queue card (module ´salequeue´)
  • lunar new year 2020, get coins
    • lunar new year 2020, get items
  • spring cleaning 2020
  • the steam awards - 2020
  • Steam Winter Sale - 2020
  • Steam Summer Sale - 2021 ( forgeyourfate-summer-2021 )
  • Steam winter sale - 2021 ( steamawards-2021 )
  • Steam Summer sale - 2022 ( steam 3000 )
  • winter sale 2022 award
  • Spring Sale 2023
  • puzzle-festioval 2023
  • redfall 2023
  • sports fest 2023
  • Steam Summer sale - 2023
  • steam 20th anniversary - 2023
  • the steam awards - 2023

Setup

Just run npm install in the root folder. ( make sure to not use the audit fix, it will break everything )

Add your account(s) into the config.js file.

Edit main.js, by setting up the modules to run in order. And how the settings should be.

And if needed change the module file.

And then run node main

Read more in the Wiki

To use

Running Modes

There is a few ways to run this.

  • RunAllBots - core.RunAllBots(modules) - will run all account in config.js
  • RunIndexSpecificBot - core.RunIndexSpecificBot([0, 1], modules) - will run the specifig index in the config.js only
  • DoRunBots - core.DoRunBots(auths, modules) - will run the given accounts in the auths list. ( Ignoring the config.js )

The modules parameter: you need to push at least one module before running. Read the next section.

Run Modules

To select what module to run. you have to add it into a list in the main.js file.

You just need to add the filename in the modules. ( if the module in a sub folder. you have to include the subfolder name separated by slash)

eks:

var modules = [];
modules.push('events/salequeue');
modules.push('events/FreeDailySticker');
modules.push('profileComment');
modules.push('Wishlist_AddGame');
modules.push('GameRecommend_Add');
modules.push('ActivateFreeGame');

Settings

In the main.js you can tweak settings the way how it should be running. The default settings are show below. ( Also can be foung in lib/Setting.js). To understand what each setting do, read about it in the Wiki by clicking here

{
    AuthFieldNameUsername: "steam_user",
    AuthFieldNamePassword: "steam_pass",
    AuthFieldNamesharedSecret: "sharedSecret",
    Logging: {
        ShowTimeStamp: true,
        ShowAccountSteamId: true,
        ShowAccountName: true,
        ShowStack: true,
        ShowModule: true,
        SaveLog: true,
        SaveLogMode: Enums.logging.None,
        SaveLogType: Enums.logging.type.SingleFile
    },
    RunningMode: {
        Mode: 0,
        clusterSize: 4
    },
    Request: {
        UseQueue: false,
        Time: 1000, // 1000 is 1 sec
        Mode: Enums.Request.MinTimeBetweenRequest
    }
}

Login modes

There is 3 way to loging

  • use username and password
  • use username and password and 2fa
  • use username and password and sentry file, once it have been loaded.

Read more on the wiki, for specific settings

Script

The scripts are made to save you time and effort for setting accounts into config.

If you do not use default settings, you have to add the setting in the files.

  • npm run SetSpecialAccountText -> will add the property to each account, with an index inside it.
  • npm run ConvertFromLineFormat [FilePath] -> will add account(s) from a text file has the format username:password:sharedsecret:SpecialAccountText (only username and password is mandatory)
  • npm run Totp [index] -> will show the username and password. and the generated totp key, to login.

more in the wiki

Web panel to contol the account

I have started to create a web panel to handle the bots, soon, it will be able to provide all the function that this script offer. https://github.com/quer/Steam-bot-Controller

the-steam-awards's People

Contributors

henkerx64 avatar quer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

the-steam-awards's Issues

logging problem

hi!. is there an option or anyway to logging without sharedSecret code? i only use the email steam guard

MultiAccount

Hi, I dont understend how to setup main.js for multiaccount
Can you help me pls?
Best regards

[REQUEST] Sharedfiles view counting

Hi,
There is a module called "likeImage" and "guideVoteLikeShare".. does voting for steam sharedfiles but does count the views, you get likes and favorites but under author stats there is "Unique Visitors" which is not updating the number at all.
For example: a guide boosted by 120 accounts get 120 likes and 120 favorites and unique visitors stays 1

only run 2 accounts

after 2/3 accounts run, it gets frozen, websession start appears, but it doesn't leave here, it doesn't move forward

Seasonal badge

Hello! is it possible to get the seasonal badge that we can get with steam shop points?
I mean this one: https://store.steampowered.com/points/shop/c/steambadge
There is an API route to do it but i don't know how to get the defid for the badge. This is the Steam Web API documentation: https://steamapi.xpaw.me/#ILoyaltyRewardsService/RedeemPointsForBadgeLevel

Something like this but for the badge i mentioned:
https://github.com/quer/the-steam-awards/blob/Master/modules/pointsShop/RedeemPoints.js

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined

Don't pay attention to the-steam-awards-2.0.0, in fact this is the latest version that I just downloaded

[Tue, 21 Nov 2023 18:50:34 GMT][MYNAMEACC] at module.exports. (D:\SteamEventStart\the-steam-awards-2.0.0\lib\CoreSteam.js:98:18) MYNAMEACC
[Tue, 21 Nov 2023 18:50:34 GMT][MYNAMEACC] at module.exports. (D:\SteamEventStart\the-steam-awards-2.0.0\lib\CoreSteam.js:104:22) Connected to Steam.
[Tue, 21 Nov 2023 18:50:49 GMT][id - MYNAMEACC] at module.exports. (D:\SteamEventStart\the-steam-awards-2.0.0\lib\CoreSteam.js:202:18) websession start
node:internal/errors:496
ErrorCaptureStackTrace(err);
^

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at new NodeError (node:internal/errors:405:5)
at Function.from (node:buffer:333:9)
at new Buffer (node:buffer:288:17)
at SteamWebLogOn.webLogOn (D:\SteamEventStart\the-steam-awards-2.0.0\node_modules\steam-weblogon\index.js:28:7)
at module.exports. (D:\SteamEventStart\the-steam-awards-2.0.0\lib\CoreSteam.js:203:27)
at new Promise ()
at module.exports.websession (D:\SteamEventStart\the-steam-awards-2.0.0\lib\CoreSteam.js:201:16)
at module.exports.onSteamLogOn (D:\SteamEventStart\the-steam-awards-2.0.0\lib\CoreSteam.js:131:97)
at SteamClient.emit (node:events:526:35)
at handlers. (D:\SteamEventStart\the-steam-awards-2.0.0\node_modules\steam\lib\steam_client.js:281:8) {
code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v18.17.1

Multiple Trade offer ? Is it possible?

Is it possible to use the library steam-tradeoffer-manager into your script to withdraw steam inventories (tf2 or csgo) to a specific account ?

new module for example?

module.exports = function (steamClient, RequestCommunity, RequestStore, SessionID, options, callback) {
	// Get our inventory
	RequestStore.getInventoryContents(730, 2, true, function (err, inventory) {
		if (err) {
			console.log(err);
			return;
		}

		if (inventory.length == 0) {
			// Inventory empty
			console.log("CS:GO inventory is empty");
			return;
		}

		console.log("Found " + inventory.length + " CS:GO items");

		// Create and send the offer
		let offer = RequestStore.createOffer("https://steamcommunity.com/tradeoffer/new/?partner=12345678&token=xxxxxxxx");
		offer.addMyItems(inventory);
		offer.setMessage("Here, have some items!");
		offer.send(function (err, status) {
			if (err) {
				console.log(err);
				return;
			}

			if (status == 'pending') {
				// We need to confirm it
				console.log(`Offer #${offer.id} sent, but requires confirmation`);
				community.acceptConfirmationForObject("identitySecret", offer.id, function (err) {
					if (err) {
						console.log(err);
					} else {
						console.log("Offer confirmed");
					}
				});
			} else {
				console.log(`Offer #${offer.id} sent successfully`);
			}
		});
	});
};

Voting for games from my list

Hello, quer!

I see that the code has changed. How do I now add games from my voting list to steamAwardNominateGame_v2 ?
The code that worked last year is not voting now

Adding steam accounts info from a txt ?

Is there any possibility to request accounts from a text file with the format username:password:sharedsecret instead of manually filling config everytime.

need index3

does not vote in the third paragraph

i disabled the use of the api key

is there to make csgo selected at the 3rd?

image

nextFest-2022 not working

Hello.
I tried to run module 'events/nextFest-2022', but nothing happened, account did not get the badge.

Console log:

Connected to Steam.
websession start
1/2 running games : 30
2/2 running games : 30
Modules done

SummerSale3000_2022 module worked ok during past event, but nextFest-2022 not working for me now.

HELP https://prnt.sc/a6esfxCmeboG

npm.psl : The term 'npm.psl' is not recognized as the name of a cmdlet, function, script file, or operable program. Che
ck the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • npm.psl
  •   + CategoryInfo          : ObjectNotFound: (npm.psl:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    
    

New version doesn't work

Hi.
I updated to the latest version, but now it doesn't work at all.
After running node main I get a message that the module was not found. Below I provide the error code. Or maybe I'm doing something wrong?

:/home/clouds/node/the-steam-awards-Master$ node main
internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module './lib/Core'
Require stack:
- /home/clouds/node/the-steam-awards-Master/main.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/clouds/node/the-steam-awards-Master/main.js:2:14)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/clouds/node/the-steam-awards-Master/main.js' ]
}

How to use a script if "SteamParentalCode" is present?

Hello.
How to use the script if I have the password "SteamParentalCode"?
There is no information in the config.js file for entering the password for "SteamParentalCode".
As a result, the script cannot receive free trading cards from the 2023 sale.

[REQUEST] Sending comments on Sharedfiles from a .txt

Hi,
I could not find any script for commenting on steam sharedfiles such as artworks, screenshots and guide from a .txt file.
Something that randomly choose a line from a txt file and send it in comments of a steam sharedfile. 😃
Is it possible to make a module for it ? Thanks so much. ❤️

steamAwardNominateGame_v2 - not working

I get this message after launching:

Connected to Steam.
websession start
you need to setup your api key. or remove this and skip from the GetMostPlayedGame methode
Modules done

And not getting a badge (

I can't use the voting module v2

Hello.

I cannot use the voting module v2 without an api key for multiple accounts. Here is a screenshot of the errors
errr

I used to use the first version of the module. It was a little easier there. In the second version, it is not entirely clear how to specify the appid I need

What am I doing wrong?

Nextfest 2022 is only running 1 game

Not sure if I'm doing something wrong, or the code is just messed up but one reason or another it seems to only run 1 game and not the 30 that is set in the runAtOnce bit.

Spring Sale 2023 error

[34m [Thu, 16 Mar 2023 20:21:13 GMT][00 - account] [36m     at module.exports.<anonymous> (xxx\the-steam-awards-2.0.0\lib\CoreSteam.js:98:18) [0m account

[34m [Thu, 16 Mar 2023 20:21:13 GMT][00 - account] [36m     at module.exports.<anonymous> (xxx\the-steam-awards-2.0.0\lib\CoreSteam.js:104:22) [0m Connected to Steam.

[34m [Thu, 16 Mar 2023 20:21:32 GMT][00 - xxxx - account] [36m     at module.exports.<anonymous> (xxx\the-steam-awards-2.0.0\lib\CoreSteam.js:202:18) [0m websession start

[44m [34m 🚩[Thu, 16 Mar 2023 20:21:34 GMT][00 - xxxx - account][FreeDailySticker] 
[36m     at module.exports (xxx\the-steam-awards-2.0.0\modules\events\FreeDailySticker.js:13:9) [0m failed to get authwgtoken, will try agirn

[44m [34m 🚩[Thu, 16 Mar 2023 20:21:34 GMT][00 - xxxx - account][FreeDailySticker] [36m     at module.exports (xxx\the-steam-awards-2.0.0\modules\events\FreeDailySticker.js:21:9) [0m error no authwgtoken

[34m [Thu, 16 Mar 2023 20:21:34 GMT][00 - xxxx - account][FreeDailySticker] [36m     at module.exports.onSteamLogOn (xxx\the-steam-awards-2.0.0\lib\CoreSteam.js:161:30) [0m Account Done!

[34m [Thu, 16 Mar 2023 20:21:34 GMT][00 - xxxx - account] [36m     at module.exports.onSteamLogOn (xxx\the-steam-awards-2.0.0\lib\CoreSteam.js:177:22) [0m Account disconnect

There was a problem posting your review.

Приветствую!
У меня возникла проблема. Я скачал новую версию сегодня. Добавил в main.js выполнение этих скриптов:

modules.push(require('./modules/gameRecommend')); modules.push(require('./modules/events/steamAwardNominateGame'));

Однако при добавлении обзора на игру, обзор не добавляется. Пишет в логе

StaRXX Connected to Steam. websession start created {"success":true,"strError":"There was a problem posting your review."} fjerenet vote - 1 - start vote - 1 - end vote - 2 - start vote - 2 - end vote - 3 - start vote - 3 - end vote - 4 - start vote - 4 - end vote - 5 - start vote - 5 - end vote - 6 - start vote - 6 - end vote - 7 - start vote - 7 - end vote - 8 - start vote - 8 - end created fjerenet done! Modules done done!

Error during connection try

scr1
I dont know where to find "sharedSecret:" located in config.js
My account don't have 2FA auth. Only email code, so I left shred secret as empty.
scr2
Can someone help?
Thanks in advance.

Connection to steam

Keep getting Connection Error
tried to use VPN but no luck

Connected to Steam.
Connection closed by server -  Error: Disconnected
    at SteamClient._disconnected (\the-steam-awards-master\node_modules\steam\lib\steam_client.js:186:24)
    at Connection.emit (node:events:527:28)
    at TCP.<anonymous> (node:net:709:12)

View a broadcast won't work

I am trying to do the task of view a broadcase in the community badge, and i was not able to manage it, idk why tho

module.exports = function(steamClient, RequestCommunity, RequestStore, SessionID, options, callback){
var ViewBroadcast = {
    headers: {
		Host: 'steamcommunity.com',
		Referer: 'https://steamcommunity.com/?subsection=broadcasts'
	},
    json: true
};
var BroadcasterID64 = "76561198985577189";
var postURL02 = 'https://steamcommunity.com/broadcast/watch/'+BroadcasterID64+'/';

RequestCommunity.Post(postURL02, ViewBroadcast, function (err, res, data) {
    if (err) {
        console.log('View Broadcast: FAIL');
    }
    if (!err) {
        console.log('View Broadcast: DONE');
    }
});
});

no error, but did not work!! any suggestion ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.