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

🔨 refactor !find command #387

Merged
merged 3 commits into from
Mar 1, 2021
Merged

🔨 refactor !find command #387

merged 3 commits into from
Mar 1, 2021

Conversation

idinium96
Copy link
Member

@idinium96 idinium96 commented Mar 1, 2021

Old:

  • Problem:
    - only show 100 entries if too many.
    - show in /code and entry form will cause the chat window to lag
  • Screenshot:
    image

New:

  • Only show sku - name
  • Can list all and no lagging issue.
    image
    .
    .
    .
    image

Copy link
Member

@arik123 arik123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need for 2 different codepaths when sending messages,
put sleep after first message - faster response
I think that some kind of limit would be usefull, maybe add option limit=<value> and if it is set to -1 then it would list all. Also set some good default limit 50-200.

src/classes/Commands/sub-classes/PricelistManager.ts Outdated Show resolved Hide resolved
src/classes/Commands/sub-classes/PricelistManager.ts Outdated Show resolved Hide resolved
@idinium96
Copy link
Member Author

idinium96 commented Mar 1, 2021

Latest commit:

  • Default limit = 200

  • if result < 200:
    image

  • if result > 200 and limit not defined:
    image

  • if result > 200 and limit is defined:
    i.
    image
    ii.
    image
    iii.
    image
    iv. (unlimited)
    image

@idinium96 idinium96 merged commit f13ce97 into development Mar 1, 2021
@idinium96 idinium96 mentioned this pull request Mar 1, 2021
@idinium96 idinium96 deleted the refactor-find-command branch March 2, 2021 03:43
idinium96 added a commit that referenced this pull request Mar 3, 2021
#373

## Added
- Options.json related:
    - ✨option to disable sending the pre-accepted message - @idinium96
        - new option added: `offerReceived.sendPreAcceptMessage.enable` (default is `true`)
    - ✨option to only show price update that is in stock - @idinium96
       - new option added: `discordWebhook.priceUpdate.showOnlyInStock` (default is `false`)
    - ✨an option to partially update item prices if in stock and the difference between the new selling price and current buying price is negative (#284 - read: #337) - @idinium96
    - ✨ option to select highValue spells - @idinium96
        - new option added: `highValue.spells` (default is `[]` - all spells)
- Others:
     - ✨Docker build for node images (refer: [Wiki](https://github.com/TF2Autobot/tf2autobot/wiki/Running-the-bot-using-docker)) - @rennokki
     - ✨support **buy order** for skins/war paints (Festivized skins/war paints not supported - see [`#337`](#377)) - @idinium96
    - ✨option to disable socket entirely (read: #383) - @idinium96

## Changed/updated
- 🔄 replaced bracket with a dash to not combine with generated URL on retrying to accept offer message sent to admins via Steam Chat - @idinium96
- 🤝 custom-pricer friendly (#363) - @idinium96
- 📝 log bot uptime on auto-restart - @idinium96
- 🔑 ensure selling price for Mann Co. Supply Crate Key never be zero - @idinium96
- 🔄 updated dependencies - @idinium96
- 🔄 improve `!deposit` command (#325, #326) - @idinium96
- 🔄 more flexibility when adding items with parameters - @idinium96
- 🔄 refactor `!find` command (view what changed: #387) - @idinium96
- ✅ do not hold items in an offer for review - @idinium96
- ⏮ revert only pick 1 craft weapon when constructing an offer - @idinium96

## Fixed
- 🔨 wrong position for pure stock and total items in the Offer review send as Discord Webhook.
- `!autoadd` command:
    - 🐛 fix the glitch where the pure got deleted from items dictionary - @idinium96
    - ⌚ add a delay before sending `autoadd` summary - @idinium96
- 🔨 fix generic unusual buy order (ensure the generic match is used against 'their' inventory) (#340) - @joekiller
- 🔨 fix sending duplicated trade summary - @idinium96
- 🔨 fix failed to disable Autokeys error - @idinium96
- 🐛 fix bot crashed (rare) on startup - @idinium96 
    - ⛔ do not execute sending price update to Discord Webhook if globalKeyPrices still undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants