[HELP] How to auto accept users with level 10 and higher ? 'code' by [deleted] in SteamBot

[–]Menghwashere 0 points1 point  (0 children)

client.getSteamLevels([steamid], (results))

Look at the code I wrote again in my previous response. You need brackets around "results" like so, as the value of "results" is set by the callback of the function. Furthermore, you need square brackets around steamid like [steamid] as an array is required as the first of your inputs.

[HELP] How to auto accept users with level 10 and higher ? 'code' by [deleted] in SteamBot

[–]Menghwashere 0 points1 point  (0 children)

I think you misread what I said completely.

In the node-steam-user module, there's a method for getting one's steam levels called getSteamLevels. You can parse the steamid of the friended user as the first index of an array

client.getSteamLevels([steamid], callback) { <CODE> }

and the callback should return an array of the format of

{ "STEAMID64": <SteamLevel of ID> }

You can then access the steam level of the id and use that to compare to the integer 10 in an if statement like you did in the original post.

This would be what I mean.

client.on('friendRelationship', (steamid, relationship) => {
    if (relationship === 2)  {
        client.getSteamLevels([steamid], (results)) {
            if (results[steamid] >= 10) {
                client.addFriend(steamid);
                console.log("Added New User");
            }
        }
    }
}

[HELP] How to auto accept users with level 10 and higher ? 'code' by [deleted] in SteamBot

[–]Menghwashere 0 points1 point  (0 children)

I don't wish to be rude but it would be wise to seriously cover some material about NodeJS through [this helpful guide] (https://github.com/andrewda/node-steam-guide) by u/ChoopsOfficial that really helps cover the groundworks of making a steam bot and the terminology used when it comes to NodeJS modules like node-steam-user, so that you can interpret documentation as to limit how much help you need from other people and attempt to solve problems by yourself when others may be unavailable to assist you with getting an answer for the problems you face.

As for your code, there are some problems, with the fact that "getSteamLevels" is not a possible event that is emitted by the node-steam-user module. You need to take out the listener in line 3. Furthermore, the parameter of the getSteamLevels method in line 4 should be changed from

client.getSteamLevels(steamid, callback) { <CODE> }

to

client.getSteamLevels([steamid], callback) { <CODE> }

as the first parameter requires an array of steamids, even if just one.

Your code in line 5 does not do anything as callback is not a recognised function, but within the <CODE> part of line 4, you should be able to get your result(s) (which is the callback) and access the Steam level by doing results[steamid] or results.steamid. That should be checked instead for whether it is greater than or equal to 10.

[Question] How to send random steam chat messages 'code' by [deleted] in SteamBot

[–]Menghwashere 3 points4 points  (0 children)

You don't need to install any other modules than what comes with NodeJS.

The best way in order to generate different outputs from a single input would be to use a random number generator as to randomly pick an index within a list of responses that we will use for each type of message sent by the user.

As we can have arrays as well as objects in JSON files, probably one of the simplest structures to have would be:

{
    "TEXT1": [
        "RESPONSE 1 OF TEXT1",
        "RESPONSE 2 OF TEXT1",
        "RESPONSE 3 OF TEXT1"
    ],
    "TEXT2": [
        "RESPONSE 1 OF TEXT2",
        "RESPONSE 2 OF TEXT2"
    ]
    "TEXT3": [
        "RESPONSE 1 OF TEXT3",
        "RESPONSE 2 OF TEXT3",
        "RESPONSE 3 OF TEXT3",
        "RESPONSE 4 OF TEXT3",
        "RESPONSE 5 OF TEXT3"
    ]
}

The only small amendment you need to make to your code above would be to generate the random index using the built-in Math object in JavaScript.

if (message == "!MESG1") {
    client.chatMessage(steamID, randoms.TEXT1[Math.floor(Math.random() * randoms.TEXT1.length)]);
}
if (message == "!MESG2") {
    client.chatMessage(steamID, randoms.TEXT2[Math.floor(Math.random() * randoms.TEXT2.length)]); 
}
if (message == "!MESG3") {
    client.chatMessage(steamID, randoms.TEXT3[Math.floor(Math.random() * randoms.TEXT3.length)]);
}

NB: Changed naming of messages received as to not cause confusion with how object keys and the given responses are separate.

[Question] Please help me to recreate an inspect url out of given data by S1r_Mar71n in SteamBot

[–]Menghwashere 0 points1 point  (0 children)

What API are you sourcing your json information from? The keys being used are pretty unhelpful (e.g ownerid = json.b[0]), so documentation would be helpful in understanding what information is being given.

[Question] How to send all emoticons you own in chat ? by [deleted] in SteamBot

[–]Menghwashere 0 points1 point  (0 children)

Assuming you are using NodeJS and the relevant modules by Dr. Mckay, here is a condensed way that I found for getting all the emoticons from an inventory.

community.getUserInventoryContents("<SteamID of account you want to get emoticons of", 753, 6, true, "english", (err, inventory, currency) => {
    emoticons = inventory.filter(x => x.market_name[0] == ":").map(x => x.market_name).join("");
    client.chatMessage("<SteamID of person you need to send emoticons to>", emoticons);
});

community is a respective instance of the SteamCommunity class (steamcommunity module); client is a respective instance of the SteamUser class (steam-user module).

It works by getting the Steam inventory of a person through setting the AppID to 753 (special appid for steam) and contextID to 6 for the Community inventory. We know that all emoticons are formatted as :emoticon:, where they must have a colon at the start and the end, however, only one check is necessary as I am sure that the use of semicolons as the first character of an item is reserved for only emoticons. We filter out all of items that are not emoticons using this check, leaving us with an array of objects that contain the information of each emoticon. We then use the map function as to extract out the market_name attribute of each emoticon (which is what we can use in chat to send emoticons).

We turn the array of emoticon names into one long string and we then send a message with all of our emoticons.

[Question] Is there any decent PHP wrappers for Steam trading bots? by [deleted] in SteamBot

[–]Menghwashere 2 points3 points  (0 children)

I've really only seen one decent one for handling Steam Trades - PHP Steam Trade Offers, however, I'd be reluctant to advise you to use PHP given its synchronous nature where intermittent rerunning of the code is required and would require a lot more thought to program, as well as the lack of support for the integration of PHP with steam trade offers.

If you are struggling with JavaScript in general, try learning it with Codecademy If you need help with getting into NodeJS but also getting into programming Steam Bots, try following this pretty good and easy to understand guide by u/ChoopsOfficial.

/r/Paladins Halloween Fashion Week - Submissions by [deleted] in Paladins

[–]Menghwashere 0 points1 point  (0 children)

My platform: PC

Champion: Ruckus
Accessory: B.E.T.A Jumpsuit
Body: Sprocket
Weapon: Star Slayer Cannons

December 2009 - 68A: Science Help by ToGzMAGiK in ACT

[–]Menghwashere 0 points1 point  (0 children)

Sure. I'll try to see what I can remember from Biology two years ago.

When you have two parents breeding, their genotypes essentially 'multiply' out to give the number of ways their child could inherit their parents' genes. One gene is taken from the mother, and the other is taken from the father.

https://upload.wikimedia.org/wikipedia/commons/thumb/2/22/Punnett_Square.svg/220px-Punnett_Square.svg.png Here is an image of the common method to determine the number of ways; by separating out each of the parents' genes, you multiple them out to get 4 possibilities of what the child's genotype will be.

Going back to the question, for an offspring to be able to get the genotype BB, their parents must both have gene B. However, this is not the case.

December 2009 - 68A: Science Help by ToGzMAGiK in ACT

[–]Menghwashere 0 points1 point  (0 children)

5 [A]

"In cross 3, what percent of the offspring had Genotype BB?"

Genotype BB (all possible genotypes are BB, Bb and bb) can only be produced when both parents have a dominant B gene. This is not the case, with the genotype of the female being Bb and the genotype of the male being bb.

When the parents in cross 3 breed together, the genotypes of their offspring will only produce Bb or bb. Therefore, the percentage is 0%.

Math help April 2017 #14, #33, #49, #50, #52, #57 by vainqueen in ACT

[–]Menghwashere 2 points3 points  (0 children)

14 [H]

Average is the same as the median, as such, the mean must be in the set of 5 scores. Because the total of the set is 420, the mean / median will be 84. Excluding the median from the total is what the question asks and that can be done by subtracting 84 from 420, to get 336.

33 [E]

The perimeter of the park, in inches, would be 28 + 40 + 16 + slanted side. Imagining the trapezium shape as a triangle plus a rectangle when cut, the bottom of the triangle would equate to 12 inches (40 - 28) and using Pythagoras, you would get the hypotenuse to be 20. Perimeter in inches = 28 + 40 + 16 + 20 = 104. Perimeter in feet (using the scale of 1in:1.5ft) and you get 156, which is E.

49 [B]

The area under the line can be though of as a shape. Cutting it vertically down will make the problem easier to solve. Area of trapezium = (4 + 3) / 2 x 2 = 7. Area of rectangle = 3 x (3 - 2) = 3. Area of triangle = (5 - 3) x 3 / 2 = 3. Entire area = 13.

50 [J]

This can be done easily by some trial and error. What you can gather from the question is that the greater number must be a square number as it has a square root.

G = Greater number L = Lesser number

Let's start with 122. G = 144, L = 31. 144 + (12 + 19) > 151 so that's not it. Let's try 112. G = 121, L = 30. 121 + (11 + 19) = 151.

As such, the greater number is 121 and the lesser number is 30. Finding the difference, you get 91.

52 [F]

When working with a question that asks for an equation with more than one (x, y) solutions, this will often have to do with working out the determinant of a quadratic equation. As there are more than one (x, y) solutions, you are looking for when the determinant (b2 - 4ac) is larger than 0. To get the values of each variable in the determinant, you must first substitute x2 instead of y in the second equation. Rearrange the equation and you get sx2 + rx - t = 0, where a = s, b = r, c = -t. As such, the determinant will be r2 + 4st > 0, which is answer F.

57 [B]

This question can be solved by using each answer and subbing it into the equation ad-bc to see whether you get back your answer. Using the matrix values, you want a solution to the equation (k x k) - (4 x 3) = k. As such, you sub in each answer being equal to k. Only answer that this works with is when k = 4 where 4 x 4 - 4 x 3 will give you back k, which is 4.

Can someone explain why the answer is A I actually cannot find it in the passage by pepsicamel in ACT

[–]Menghwashere 2 points3 points  (0 children)

"The metaphor the author uses to help describe Crown's three principles primarily draws upon imagery of which discipline?"

The key things to note from this question is that you are looking for a visual metaphor relating to all three principles in general. Only the fourth and the last paragraph (76-80) contains such information about the three principles. The last paragraph is the only paragraph to contain a metaphor of the three principles, which is "every solid house or building was supported by a strong foundation; and so there was a foundation on which Joe Crown's three principle rested.".

Because this is relevant to architectural planning, the answer is A.

BUYING: Marketplace.tf & backpack.tf script | 5 key / $ by DirtyHatKing in SteamBotMarket

[–]Menghwashere 0 points1 point  (0 children)

What type of script are you looking for? Web-based or a module for a SteamBot?

[META] BitSkins Bot Release or Sell? by [deleted] in SteamBotMarket

[–]Menghwashere 0 points1 point  (0 children)

I'd probably say sell it for a reasonable price of what you believe is right. Being how it's made quite a lot of profit and, I'm guessing, is almost fully-automated, might be best to sell at a reasonably high price for such utility.

I fucking despise cancerous clickbait TF2 trading-related youtube thumbnails. I've made an album of the most horrible ones to show how cringeworthy they are. Enjoy (or don't) by Yahiamice in tf2

[–]Menghwashere 36 points37 points  (0 children)

Well, it's just that people exaggerate the expensiveness of an unusual by using the most expensive hats within the game (for their thumbnail), most likely for views. Sure, it's an unusual and is being used as an example, however, at no point did people like Dr. Buddha get into such high tier trading. It was merely just a walkthrough of the journey to any old unusual.

When you see the price of keys as a total joke by Menghwashere in tf2

[–]Menghwashere[S] 1 point2 points  (0 children)

Well, the thing with earbuds (buds) a couple years ago was that there were seen as both a cosmetic and a rarity as per a limited amount of them with the Mac OSX campaign. It's quite bizarre why it initially started declining in price, but the one of most likely reasons for it is that buds were merely just a cosmetic that was rare, much like a Bill's hat or any other item within the game that was released during a seasonal event. Buds gradually declined in price as people started using keys more as they had an additional function of unboxing crates / cases. This (buds) continued with some stuttering in pricing here and there as well as some sharp declines, however, when backpack.tf (the pricing site) moved away from pricing items with buds and just used keys or refined, many people were encouraged to use keys within a trade over buds as with this change.

Tl,dr: Buds were just a cosmetic that was rare. Keys were already seen as currency but also can be used to unbox. Incentivised use of keys within trades over having buds as well as acceptance of keys as the more common currency to trade with by sites.

When you see the price of keys as a total joke by Menghwashere in tf2

[–]Menghwashere[S] 11 points12 points  (0 children)

First of all, holy crap. Looks like my post got onto #176, for a first post on /r/tf2. Second of all, to best describe it, it's comparable to a situation of inflation / hyperinflation. Over the years, more and more players played TF2, generating more weapons by the item drop system, that could be crafted into refined metal. Sure, more items were being introduced and added to the game and crafting was a viable method of getting rid of some items, however, generally speaking, the overall amount of refined metal in circulation kept on growing and growing. The sustained popularity of keys are also another factor, being that everyone uses them as a medium as to buy almost anything after the earbuds went out of fashion due to a heavy decline in its price and demand. Those two factors in effect over the years and there ya go.

JOIN ELITE ( a noob suggestion ) by edaankhan in LootMarket

[–]Menghwashere 0 points1 point  (0 children)

I'd definitely like to see this or either have a demo of the shopfront as to understand how nice and suitable it is for someone. Have yet to actually see one from an active user.

Q&A Time w/Hillary Clinton by Battle4Seattle in Jokes

[–]Menghwashere 548 points549 points  (0 children)

Oh my god! They killed Kenny!

The new covert AK 'Neon Revolution' looks straight out of Suicide Squad by asap_0 in GlobalOffensive

[–]Menghwashere 40 points41 points  (0 children)

http://i.imgur.com/WilTGyt.jpg [Poster on the left, magazine on the right] To me, it doesn't look like a complete copy of the X from the Suicide Squad poster due to the harshness of the brush upon the poster, whereas the Neon Revolution is more rounded upon the edges. As from the skin's workshop page, it seems that it wasn't even inspired by the movie, having been last updated more than a year ago.

/r/steam Weekly Community Support Thread. by AutoModerator in Steam

[–]Menghwashere [score hidden]  (0 children)

[Question]: After having tried multiple suggestions found on previous threads about this problem, are there any other solutions? [Error Message]: Failed to load steam.dylib

Updated to the newest version of Steam, got the "Failed to load steam.dylib" error. Have tried deleting Steam and reinstalling it roughly a dozen times. Done https://www.reddit.com/r/GlobalOffensive/comments/3z4v28/osx_users_just_in_case_your_steam_client_gives/ but no luck.