Skip to content

Commit

Permalink
🔀 Merge pull request #498
Browse files Browse the repository at this point in the history
#498

## Changes
- 🚧 add failsafe on updateOldPrices method (#489)
    - new options.json property: `sendAlert.failedToUpdateOldPrices` (default is `true`)
- 🔄 update core dependencies:
    - `tf2-schema-2`: 🧪 add support for Chemistry Set (`!sku` command) (#490)
    - `bptf-listings-2`: 🔨 fix defindex for Exclusive Genuine items (#496)
- 🎭 `!getSlots` or `!listings` command (#499)
- 🔎 execute pricecheck on add, update, and remove commands (#500)
- 🔨 add missing `resetgroup` in `!update all=true` (#501)

## Fixes
- PPU: 
    - 🔨 fix the unintended rare occurrence (#497)
    - 🔨 fix info on auto-update partially priced item and update Discord Webhook embed color (#491)
- 🐛 fix manual pricing update reverted to autoprice - closes #488 (#492)
  • Loading branch information
idinium96 authored Mar 25, 2021
2 parents 43ba1e5 + 76fc605 commit 5d615f9
Show file tree
Hide file tree
Showing 12 changed files with 293 additions and 148 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ A free and open source fully automated TF2 trading bot advertising on www.backpa
![License](https://img.shields.io/github/license/idinium96/tf2autobot)

**TF2Autobot made by IdiNium**
[![profile](https://user-images.githubusercontent.com/47635037/100916111-4945eb80-3510-11eb-8036-86c032cb6627.png)](https://backpack.tf/profiles/76561198013127982)
[![profile](https://user-images.githubusercontent.com/47635037/112201149-edcc7480-8c4a-11eb-9756-fcf1509a74d0.png)](https://backpack.tf/profiles/76561198013127982)

Before you install the bot, there are a few things you will need:

Expand Down Expand Up @@ -45,7 +45,7 @@ If you run into trouble when running the bot, make sure to head to [Common Error

Join the [TF2Autobot Discord server](https://discord.gg/D2GNnp7tv8) and head over to [`#🆚roles`](https://discordapp.com/channels/664971400678998016/719391430669500447/771188962550611988) channel and react to the first message to get notified whenever an update has been released!

<div align="center"><img src="https://user-images.githubusercontent.com/47635037/88795539-c8c65580-d1d2-11ea-993e-4161083b3e36.PNG" alt="update-noti" style="display:block;margin-left:auto;margin-right:auto;width:400px;height:250px;"></div>
<div align="center"><img src="https://user-images.githubusercontent.com/47635037/112201587-5fa4be00-8c4b-11eb-8757-86d176e27086.png" alt="update-noti" style="display:block;margin-left:auto;margin-right:auto;width:400px;height:250px;"></div>

\*\*There are also giveaways held every Thursday, 8 AM - 8 PM (12 hours) Malaysia time!

Expand Down
141 changes: 66 additions & 75 deletions package-lock.json

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

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
"bugs": {
"url": "https://github.com/TF2Autobot/tf2autobot/issues"
},
"updateMessage": "• <=v3.6.8 - Check your Node.js version. Make sure it's at least version 14 before updating your bot to v3.7.0. Manual update recommended.",
"updateMessage": "• <=v3.6.8 - Check your Node.js version. Make sure it's at least version 14 before updating your bot to the latest version. Manual update recommended.\nv3.7.0 - Clear to update with \"!updaterepo\" command.",
"homepage": "https://github.com/TF2Autobot/tf2autobot#readme",
"dependencies": {
"@tf2autobot/tradeoffer-manager": "^2.11.2",
"async": "^3.2.0",
"bluebird": "^3.7.2",
"bluebird-global": "^1.0.1",
"body-parser": "^1.19.0",
"bptf-listings-2": "^1.3.5",
"bptf-listings-2": "^1.3.6",
"bptf-login-2": "^1.0.2",
"callback-queue": "^3.0.0",
"change-case": "^4.1.2",
Expand Down Expand Up @@ -61,7 +61,7 @@
"steamid": "^1.1.3",
"tf2": "^3.0.2",
"tf2-currencies-2": "^1.2.5",
"tf2-schema-2": "^1.5.0",
"tf2-schema-2": "^1.5.1",
"tf2-sku-2": "^1.1.1",
"url": "^0.11.0",
"valid-url": "^1.0.9",
Expand All @@ -74,7 +74,7 @@
"@babel/preset-typescript": "^7.13.0",
"@types/async": "^3.2.5",
"@types/bluebird-global": "^3.5.12",
"@types/cheerio": "^0.22.27",
"@types/cheerio": "^0.22.28",
"@types/death": "^1.1.1",
"@types/express": "^4.17.11",
"@types/graceful-fs": "^4.1.5",
Expand All @@ -85,8 +85,8 @@
"@types/semver": "^7.3.4",
"@types/socket.io-client": "^1.4.34",
"@types/valid-url": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@typescript-eslint/eslint-plugin": "^4.19.0",
"@typescript-eslint/parser": "^4.19.0",
"eslint": "^7.22.0",
"eslint-plugin-jest": "^24.3.2",
"eslint-plugin-prettier": "^3.3.1",
Expand Down
4 changes: 2 additions & 2 deletions src/classes/Commands/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class Commands {
this.message = new c.MessageCommand(bot);
this.misc = new c.MiscCommands(bot);
this.opt = new c.OptionsCommand(bot);
this.pManager = new c.PricelistManager(bot);
this.pManager = new c.PricelistManager(bot, pricer);
this.request = new c.RequestCommands(bot, pricer);
this.review = new c.ReviewCommands(bot);
this.status = new c.StatusCommands(bot);
Expand Down Expand Up @@ -200,7 +200,7 @@ export default class Commands {
this.pManager.getCommand(steamID, message);
} else if (command === 'getall' && isAdmin) {
void this.pManager.getAllCommand(steamID, message);
} else if (command === 'getslots' && isAdmin) {
} else if (['getslots', 'listings'].includes(command) && isAdmin) {
void this.pManager.getSlotsCommand(steamID);
} else if (command === 'autoadd' && isAdmin) {
void this.pManager.autoAddCommand(steamID, message);
Expand Down
Loading

0 comments on commit 5d615f9

Please sign in to comment.