Archisteamfarm: new command !sendgift ???

Created on 13 Mar 2017  路  14Comments  路  Source: JustArchiNET/ArchiSteamFarm

Improving this topic: github.com/JustArchi/ArchiSteamFarm/issues/467
For example, i buy 100 copies of games and put them in inventory (using a user script of course, but this does not apply to this topic). After i write in the group chat !sendgift (!sg).
_-main: !sg <900,800,700>
-bot1: [done 900,800,700]
-bot2: [done 900,800,700]
-bot3: [done 900,800] [alredy have 700]
-...
-bot100: [done 900,800,700]
-bot101: [no in inventory 900,800,700]_
I think it does not violate SSA.

Discussion Enhancement Help welcome On hold Wishlist

Most helpful comment

And yes, it requires e-mail handling (but as @TheSergiooo said he made a parser, so it is possible, right? :D)

Everything is possible, and it does not matter whether somebody already achieved that or not - email handling is out of the ASF scope, and such feature won't be included in the program, like @Ryzhehvost pointed out above.

I'd also appreciate if people did not mix this issue with #505. This issue is based on being capable to send gifts from inventory to other bots, while #505 is based on claiming gift based on its token. In noone of those issues there is any e-mail factor included, and in noone of those issues it should be included, because it's out of the scope of ASF.

All 14 comments

The main advantage that you do not need to add to friends bots.

I'm not sure what to think about that.

I can definitely see advantages of it being available, but at the same time I'm pretty sure that gifts management is kinda out of the scope, same like I said with keys management - ASF does not manage keys/gifts, it only redeems them (and optionally, forwards further). I'd like it to stay like this, since gifts management same like keys management should be done in some other tool.

I'm putting it on hold for now, as I'm definitely not sure if I want to see it in, while I probably wouldn't have anything against if somebody sent it in PR.

Hmm. That can be useful for distributing gifts among the bots, but it may require a lot of efforts to implement it, and even to find out best ways to do it. It needs a closer evaluation.

The main advantage that you do not need to add to friends bots.

That's not true. ASF can only handle gifts received directly in steam, so you'll need bots as a friends (at least one of them, if forwarding is implemented). I believe email handling is out of the scope of ASF.

@Ryzhehvost Yes, friend argument doesn't really work here, but I can see how one could want to send gifts to bot 2 and keep all bots as friend of only that one bot without a need of logging in, since you already can send gifts via trade request.

And yes, it also might be the first suggestion that I'll reject purely based on how complicated it is and the massive amount of work that has to be put into making it happening. Gifts management is not easy 3-liners that could be added on top of what already exists, it's a giant feature that would result in at least bumping ASF from 2.2 to 2.3, if not to 3.0 (which I'm keeping for netcore, if it ever happens).

That's why I put it on hold for now, since I don't think it goes out of the scope that much, and I also can find it useful, yet I don't really want to code it at the moment due to the fact that it's complicated a lot.

Just making a note (hope you don't mind).
This will need more complex syntax. If user don't use WCF, then probably they send commands to some bot added as a friend. And probably in most cases user would want to buy games on main account and then distribute. So, the command will need:

  1. Bot name to which command is addressed and from which gifts needs to be send.
  2. Game ID (or list of ID) which needs to be sent
  3. Bot name (or list of names) to whom gifts needs to be sent.
  4. Optional - some mark to override forwarding (maybe alternative command with ~ or &, etc)

Optionally, instead of (or together with) sending by game ID we may want a command dealing with an identificator of a praticular inventory item.

So, even in best case scenario we will need (at least) one more parameter than most of commands we had so far.

For example, i buy 100 copies of games

Is it really possible to buy this many gifts in a row? I believe it does trigger some alert on Steam Store or something a lot sooner than that...

There is rate limiter of course, but other than that there is no problem to buy any quantity of gifts. But it is anyway out of the scope of asf, so why bother about it.

Well, i was just passing by, and thought that it could be easily implemented trough "send to email" option. Not a long time ago i made a C++ imap parser that allows to get all the gift tokens from a mailbox. Also, i worked with ArchiWebHandler and its pretty simple to make post requests.
I will try to make some kind of !opengift <token> command. If it will look fine, i will make a PR.

P.S.: IMHO - way of openenig gifts trough trades is questionable and kind of useless. Just why you would like to handle 2FA, trade offer holds, inventory managment and other headache, when you can just send gift to email, and then send post with token?

You don't need any !opengift - ASF is already capable of automatically accepting (and redeeming) received Steam gifts directly, and e-mail handling is entirely out of the scope ASF. OP is asking for sending items from his inventory to specific bots, so he doesn't need to click "send gift" on each item one-by-one. Yes, that could be done with mass-sending to e-mail, but that wouldn't really be any different since he'd have to do that anyway.

Well I can think one way to "kinda" implement this, but not with a command.
And yes, it requires e-mail handling (but as @TheSergiooo said he made a parser, so it is possible, right? :D)

Firstly let's say we have a ASF config property with mail credentials that ASF can check and a timer setting how often it should.
Then we parse email for gift mails, parse appID or subID (should I copy that from #505?) from it and a name of recipient.
If recipient name is like the name of Bot instance then we redeem it on that bot, otherwise on next bot that don't have this game/sub (same if we can't get appID/subID).

I was actually thinking of using name of recipient to address a particular bot too, when/if we implement this.
But, once again - I believe that email handling is out of the scope.

And yes, it requires e-mail handling (but as @TheSergiooo said he made a parser, so it is possible, right? :D)

Everything is possible, and it does not matter whether somebody already achieved that or not - email handling is out of the ASF scope, and such feature won't be included in the program, like @Ryzhehvost pointed out above.

I'd also appreciate if people did not mix this issue with #505. This issue is based on being capable to send gifts from inventory to other bots, while #505 is based on claiming gift based on its token. In noone of those issues there is any e-mail factor included, and in noone of those issues it should be included, because it's out of the scope of ASF.

With recent changes from Valve it's impossible to buy gifts to inventory anymore. So this issue is probably obsolete and can be dropped.

Due to recent gifting changes from Valve there's no point working on this anymore, if nobody coded anything regarding this yet. Therefore I'm closing this issue, at least until it is possible to make use of it for newly bought gifts.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ludo237 picture ludo237  路  3Comments

kerberois picture kerberois  路  3Comments

Revadike picture Revadike  路  3Comments

light444 picture light444  路  3Comments

undefo picture undefo  路  4Comments