Adding items - TF2Autobot/tf2autobot GitHub Wiki

3.4. Add item to pricelist with !add command

In order to have your bot to start trading, you will need to tell your bot what items to buy/sell/bank by adding the items to the pricelist through Steam Chat. The command that you will use is !add command.

3.4.1 Using item parameter

You can just copy the item full name from Backpack.tf, and send to your bot. Example:

  • !add item=Max's Severed Head
  • !add item=Taunt: The Schadenfreude
  • !add item=Terror-Watt Stately Steel Toe

Just make sure to not put a space between the item and the equal sign (=). You can add other listings settings parameter(s) if needed. Example:

  • !add item=Max's Severed Head&max=3

===

3.4.2 Using sku parameter

There are two ways of obtaining the sku of an item. You can use the marketplace.tf method or you can use the !sku command

  • Example 1:

  • Example 2:

    • Item: Specialized Festivized Australium Tomislav
    • Steam chat command: !sku Specialized Killstreak Festivized Australium Tomislav
    • sku: 424;11;australium;kt-2;festive
    • to add: !add sku=424;11;australium;kt-2;festive

===

3.4.3 Using item name or defindex parameters

Example:

*Notes:

  • If you want to add Mann Co. Supply Crate Key with name parameter, it will list out all possible key defindexes from the tf2 schema. Please choose the one at the top with the name Decoder Ring and use !add defindex=5021.

    listings
  • If you want to add a stock weapon (such as Scattergun, Minigun and etc), there are two defindexes for stock weapons. You only need to use the one with Upgradeable_TF_WEAPON_NAME and use that defindex.

    listings
  • Festive and Festivized are two different things. When adding a Festive weapon, please include Festive in the item name (oh and yes, the item defindex is also different), but if Festivized, you need to add the sub-parameter festive=true.

  • If you want to add Name Tag or Non-Craftable Name Tag, you will need to use the correct defindex, which is 5020 instead of 2093. This bug can not be fixed unless Team Fortress 2 updates its schema to remove the wrong defindex.

===

3.4.4 Example with situation/intention:

  • Example 1: "I want to bank Max's Severed Head for a max of 3 with autoprice enabled"
  • Summary:
    • Item: Max's Severed Head (162;6)
    • intent: bank
    • min: 0
    • max: 3
    • autoprice: true
    • enabled: true
  • Command to use: !add sku=162;6&max=3 (no need to add the other this since they are all default).

///

  • Example 2: "I want to sell Strange Australium Stickybomb Launcher for 23 keys"
  • Summary:
    • Item: Strange Australium Stickybomb Launcher (207;11;australium)
    • intent: sell
    • min: 0
    • max: 1
    • autoprice: false
    • enabled: true
    • sell price: 23 keys
    • buy price: 0 keys, 0 ref
  • Command to use: !add sku=207;11;australium&intent=sell&sell.keys=23&buy.metal=0

3.4.5 Adding items in bulk

To add items in bulk you will be using the !addbulk command. It allows you to use the same item identifying and listing setting paramters as using the !add command.

The syntax is as follows:

!addbulk item_one
item_two
item_two

Let's look at an example:

!addbulk sku=5021;6&intent=sell
name=Tomislav&quality=Strange&australium=true
defindex=424&quality=Strange&australium=true&festive=true

As always, any listing setting parameters you don't specify are using default values.


*Notes:

  • If you want to sell it for only in keys, then you can ignore the sell.metal parameter.
  • You do not need to set autoprice=false if you're about to manually price the item.

Continue: Updating an item or multiple items

⚠️ **GitHub.com Fallback** ⚠️