JustArchiNET / ArchiSteamFarm

C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
Apache License 2.0
11.09k stars 1.04k forks source link

Add timer to `!play` command #3266

Closed jaredcat closed 1 month ago

jaredcat commented 1 month ago

Checklist

Enhancement purpose

I use the play command often for some giveaway sites that track game play time. Some request time over 10 hours. I don't want to leave it on playing a game and forget.

Solution

Add an optional property at the end of the command for amount of time a game should be played for: !play ASF 111111 60 would play appid 111111 for 60 minutes and then return to normal function.

A solution that exceeds this request would be something that allows for a list of games and times, so it plays each one for a set time before moving to the next.

Why currently available solutions are not sufficient?

Currently, it's quite annoying to have to set times or impossible to resume the bot because the user my not have ability to send commands to the bot (sleeping, at work, etc)

Can you help us with this enhancement idea?

Yes, I can code the solution myself and send a pull request

Additional info

Re: coded solution. I don't know much c# but if you point me to sections of relevant code I could probably get something working

JustArchi commented 1 month ago

https://github.com/JustArchiNET/ArchiSteamFarm/issues/865#issuecomment-408621640

I don't know much c# but if you point me to sections of relevant code I could probably get something working

https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Plugins https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Plugins-development

Outside of ASF scope as per above, you can code your own plugin or third-party solutions utilizing e.g. IPC if you care.