Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quite a major update #30

Merged
merged 33 commits into from
Jul 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
f87dd96
Bump lodash from 4.17.15 to 4.17.19
dependabot[bot] Jul 16, 2020
99c293b
Merge pull request #29 from idinium96/dependabot/npm_and_yarn/lodash-…
idinium96 Jul 16, 2020
b1f05a5
update note
idinium96 Jul 16, 2020
4ac0c7f
add a parameter %amount_can_buy% for listing note
idinium96 Jul 16, 2020
89821d3
Merge branch 'development' of https://github.com/idinium96/tf2autobot…
idinium96 Jul 16, 2020
dfa03ab
add an option to customize playing game name
idinium96 Jul 17, 2020
ede73bd
5x Uses for Dueling Mini-Game is now an option
idinium96 Jul 17, 2020
82a46e9
add an option for 25 uses Noise Maker check
idinium96 Jul 17, 2020
23c1300
ouch. I need more glasses.
idinium96 Jul 17, 2020
be84a06
revert - it's actually already correct. -.-'
idinium96 Jul 17, 2020
ce45404
update README
idinium96 Jul 17, 2020
48c1e16
for feature experiment - old crateseries # problem
idinium96 Jul 18, 2020
ce434e9
add !craftweapon and !uncraftweapon commands
idinium96 Jul 18, 2020
1ab4bb9
delete an item with an item assetid or sku
idinium96 Jul 18, 2020
0735688
option to accept INVALID_ITEMS/OVERSTOCKED overpay
idinium96 Jul 18, 2020
f9c2461
fix crashed - but mostly can't delete by assetid
idinium96 Jul 18, 2020
4272596
can have both sku and assetid parameters
idinium96 Jul 18, 2020
0a41762
only delete if sku & assetid entered match.
idinium96 Jul 18, 2020
e192e06
option to just decline INVALID_VALUE trades
idinium96 Jul 18, 2020
b87850c
add option to automatically decline INVALID_VALUE
idinium96 Jul 18, 2020
dfd625a
change the newly added variables name
idinium96 Jul 18, 2020
1a4da92
update a variable name
idinium96 Jul 18, 2020
dd73aa1
add a missing invalid_value exception condition
idinium96 Jul 18, 2020
069da3e
fix wrong position
idinium96 Jul 18, 2020
c549b66
fix not matched with README
idinium96 Jul 18, 2020
b944df5
add ecosystem.json templates for multiple bots
idinium96 Jul 18, 2020
1f1fa02
update README
idinium96 Jul 18, 2020
7f72efd
update README
idinium96 Jul 18, 2020
811d6de
redo
idinium96 Jul 18, 2020
ed495ff
redo README
idinium96 Jul 18, 2020
06ac14e
apply some improvements
idinium96 Jul 18, 2020
0ae8228
update dependencies
idinium96 Jul 18, 2020
076ba98
do CI build check for node v14.x
idinium96 Jul 18, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
node-version: [8.x, 10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@master
Expand Down
50 changes: 35 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ A free and open source fully automated TF2 trading bot advertising on www.backpa
[![Donate-paypal](https://img.shields.io/badge/donate-paypal-blue)](https://www.paypal.me/idinium)
[![Donate-steam](https://img.shields.io/badge/donate-steam-lightgrey)](https://bit.ly/3gbldTM)

**tf2autobot made by IdiNium**
[![profile-Steam](https://img.shields.io/badge/Steam-profile-blue)](https://steamcommunity.com/profiles/76561198013127982/)
[![profile-bptf](https://img.shields.io/badge/Backpack.tf-profile-blue)](https://backpack.tf/profiles/76561198013127982)
![bptf-profile](https://user-images.githubusercontent.com/47635037/87852271-23d68d80-c933-11ea-84e4-a116d4163878.PNG)


Before you install the bot, there are a few things you need to have taken care off before you will be able to run the bot.

- You need a separate [Unlimited](https://support.steampowered.com/kb_article.php?ref=3330-IAGK-7663) Steam account with a mobile authenticator. I suggest using the [Steam Desktop Authenticator](https://github.com/Jessecar96/SteamDesktopAuthenticator) to authenticate the account and get the secret keys used to automate generating 2FA codes and managing mobile confirmations.
Expand Down Expand Up @@ -40,21 +46,24 @@ The original tf2-automatic repository already have a lot of features, but some f
- dupe check on items that are more than minimum keys (you set it yourself)

### tf2autobot version
- add an option to use Discord Webhook for your bot to send accepted trade summary/ offer review/ messages.
- add an option to disable show only metal in trade summary (it will show x keys, y ref, it will show only x ref on original version)
- add an option to enable Autokeys (to keep your refined metal stock) and key banking ([jump](https://github.com/idinium96/tf2autobot#autokeys-auto-buy-or-sell-keys-feature))
- add an option to set your own custom greeting/success/failed messages and offer review notes
- added an option to use Discord Webhook for your bot to send accepted trade summary/ offer review/ messages.
- added an option to disable show only metal in trade summary (it will show x keys, y ref, it will show only x ref on original version)
- added an option to enable Autokeys (to keep your refined metal stock) and key banking ([jump](https://github.com/idinium96/tf2autobot#autokeys-auto-buy-or-sell-keys-feature))
- added an option to set your own custom greeting/success/failed messages and offer review notes
- send to trade partner a summary of their offer if need to be reviewed ([jump](https://github.com/idinium96/tf2autobot#offer-review-summary-on-trade-partner-side))
- alert admins when there's something wrong, like queue problem (which the original one is still not fixed yet, and I have no idea why) and when your bot is out of space or if your bot has less than minimum pure (must enable Autokeys feature)
- automatically restart your bot on queue problem, and automatically relist if backpack.tf does not synchronized with your bot listings on Autokeys (sometimes it's set to automatically buy keys, but at backpack.tf, it's listed to sell.)
- use emojis on almost all messages
- add an option to set all craft weapons as currency (0.05 ref) and automatically craft duplicate craftable weapons
- added an option to set all craft weapons as currency (0.05 ref) and automatically craft duplicate craftable weapons
- INVALID_VALUE exception
- add an option to NOT mention (Discord Webhook) on an INVALID_VALUE offer
- added an option to automatically decline (skip manual review) **ONLY** INVALID_VALUE trade, if not within INVALID_VALUE exception sku and value range.
- added an option to accept (skip manual review) INVALID_ITEMS or OVERSTOCKED trades if the trade partner offer more than what they're taking (overpay).
- added an option to NOT mention (Discord Webhook) on an INVALID_VALUE offer
- Mention every items on each offer review reasons
- Dueling Mini-Game: Only accept 5 Uses!
- New added commands: "!pure", "!time", "!delete", "!check", "!block", "!unblock" and "!autokeys"
- add an option to disable acceptting friend request
- Dueling Mini-Game: Only accept 5 Uses! (option)
- Noise Maker: Only accept 25 Uses! (option)
- New added commands: "!pure", "!time", "!delete", "!check", "!block", "!unblock", "!autokeys", "!craftweapon" and "!uncraftweapon" commands
- added an option to disable acceptting friend request
- and more to come!

## Added features
Expand Down Expand Up @@ -122,11 +131,11 @@ Some screenshots:

![autokeys3](https://user-images.githubusercontent.com/47635037/84581310-9c1cd100-ae12-11ea-80fa-085ad8bff73e.png)

You can see codes on how this feature works [here](https://github.com/idinium96/tf2autobot/blob/master/src/classes/MyHandler.ts#L1342-L1798).
You can see codes on how this feature works [here](https://github.com/idinium96/tf2autobot/blob/master/src/classes/MyHandler.ts#L1481-L1991).

### Emojis and more commands added

![commands](https://user-images.githubusercontent.com/47635037/84581311-9c1cd100-ae12-11ea-8aae-29733d9e0334.PNG)
![commands](https://user-images.githubusercontent.com/47635037/87851703-f76c4280-c92d-11ea-8bd4-60a79312929f.png)

### Offer review summary on trade partner side

Expand Down Expand Up @@ -183,6 +192,8 @@ You can run your bot without this first, which then on the first run, it will pr
- `DISABLE_SOMETHING_WRONG_ALERT`: [true|false] - Default: false. My custom - Used to notify owner if your bot has a queue problem/full inventory/low in pure (if Autokeys is on).
- `DISABLE_CRAFTWEAPON_AS_CURRENCY`: [true|false] - Default: false. Set it as true if you don't want to set craft weapons as currency (0.05 ref).
- `DISABLE_ADD_FRIENDS`: [true|false] - Default: false. Set to true if you don't want people to add your bot (not recommended).
- `DISABLE_CHECK_USES_DUELING_MINI_GAME`: [true|false] - Default: false. Set to true if you want your bot to buy Dueling Mini-Game of regardless of how many uses left.
- `DISABLE_CHECK_USES_NOISE_MAKER`: [true|false] - Default: false. Set to true if you want your bot to accept Noise Maker that is not 25 Uses.

#### Misc feature
- `TRADES_MADE_STARTER_VALUE`: [Number] - Used mainly for displaying your bot total trades made, found in your bot Steam Profile page (leave it 0 if you don't care about it, used for discord webhook).
Expand Down Expand Up @@ -231,9 +242,10 @@ Time will be use in "!time" command and
**Parameters:**
- `%name%` - display an item name
- `%price%` - display item's buying/selling price
- `%current_stock%` - display item's current stock
- `%max_stock%` - display item's maximum stock
- `%amount_trade%` - display amount that can be traded (between minimum and maximum stock)
- `%current_stock%` - display item's current stock (by default this is used in `BPTF_DETAILS_BUY`)
- `%max_stock%` - display item's maximum stock (by default this is used in `BPTF_DETAILS_BUY`)
- `%amount_trade%` - display amount that can be traded (between minimum and maximum stock, use it on `BPTF_DETAILS_SELL`)
- `%amount_can_buy%` - display the amount that the bot can buy (use it on `BPTF_DETAILS_BUY`)
- `%keyPrice%` - display current key rate (selling price), it will show as `Key rate: x ref/key` only if the item price include x key, otherwise, it will show as ✨
- `%dueling%` - will display `(𝗢𝗡𝗟𝗬 𝗪𝗜𝗧𝗛 𝟱x 𝗨𝗦𝗘𝗦)` on only Dueling Mini-Game listing - prefer to only place this on `BPTF_DETAILS_BUY`, on other item will show as ✨

Expand Down Expand Up @@ -292,10 +304,16 @@ Time will be use in "!time" command and
### Manual Review settings
- `ENABLE_MANUAL_REVIEW`: [true|false] - Set to true if you want any INVALID_VALUE/INVALID_ITEMS/OVERSTOCKED/DUPED_ITEMS/DUPE_CHECK_FAILED trades to be reviewed by you.
- `DISABLE_SHOW_REVIEW_OFFER_SUMMARY`: [true|false] - set to true if you do not want your bot to show offer summary to trade partner, but it will only notify trade partner that their offer is being hold for a review.
- `DISABLE_REVIEW_OFFER_NOTE`: [true|false] - If set to false, it will show note on [each error](https://github.com/idinium96/tf2autobot/blob/master/src/classes/MyHandler.ts#L1140-L1264)
- `DISABLE_REVIEW_OFFER_NOTE`: [true|false] - If set to false, it will show note on [each error](https://github.com/idinium96/tf2autobot/blob/master/src/classes/MyHandler.ts#L1278-L1478)
- `DISABLE_SHOW_CURRENT_TIME`: [true|false] - If set to false, it will show owner time on offer review notification that trade partner will received.

- `DISABLE_ACCEPT_INVALID_ITEMS_OVERPAY`: [true|false] - Default: false. Set to true if you want your bot to accept a trade with INVALID_ITEMS but with their value more or equal to our value.
- `DISABLE_ACCEPT_OVERSTOCKED_OVERPAY`: [true|false] - Default: false. Set to true if you want your bot to accept a trade with OVERSTOCKED but with their value more or equal to our value.
- `DISABLE_AUTO_DECLINE_INVALID_VALUE`: [true|false]: Default: false. Set to true if you want to automatically decline trade with **ONLY** `INVALID_VALUE` and did not match the exception sku(s) and exception value.

- `INVALID_VALUE_EXCEPTION_SKUS` [StringArray] - An array of sku that will skip Invalid value if the difference between our and their value is not more than exception value in ref. Let say you want to trade an unusual, but then someone sent an offer with 0.11 ref less, but you want your bot to accept it anyway if it's less than 10 ref, so the trade will be accepted. By default, it will check only for any unusual and australium: `[";5;u", ";11;australium"]`, you can also leave it empty (`[""]`) so all with invalid value will be notified.
- `INVALID_VALUE_EXCEPTION_VALUE_IN_REF` [Number] - Exception value for the sku(s) that you set above. Default is `0` (no exception).

- `INVALID_VALUE_NOTE` - Your custom INVALID_VALUE note.
- *`INVALID_ITEMS_NOTE` - Your custom INVALID_ITEMS note.
- *`OVERSTOCKED_NOTE` - Your custom OVERSTOCKED note.
Expand All @@ -314,6 +332,8 @@ What the trade partner will received: "Dueling Mini-Game, Secret Saxton are not


### Others
- `CUSTOM_PLAYING_GAME_NAME` - Custom name of the game your bot is playing. Limited to only 45 characters. Example: https://gyazo.com/308e4e05bf4c49929520df4e0064864c (you do not need to include that `- tf2-automatic`, just your custom game name but not more than 45 characters.)

- `CUSTOM_WELCOME_MESSAGE` - Your custom WELCOME_MESSAGE note. Two parameters: `%name%` (display trade partner name) and `%admin%` (if admin, it will use "!help", else "!how2trade").
- `CUSTOM_I_DONT_KNOW_WHAT_YOU_MEAN` - Your custom note when people sends wrong command.
- `CUSTOM_HOW2TRADE_MESSAGE` - Your custom HOW2TRADE note.
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"eslint-plugin-tsdoc": "^0.2.5",
"nodemon": "^2.0.4",
"prettier": "^1.19.1",
"typescript": "^3.9.6"
"typescript": "^3.9.7"
},
"private": true
}
Loading