-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Vote for the first round of the Steam Awards (nominations) #340
Comments
added in 2.2.8.0 |
Only two passes. Does not play or write a review. |
I can get 3 ticks out of 4 with the following code. !vote ASF 2379780,1712350,275850,2727650,2347910,1425350,2570630,1147860,2835570,1497360,1177980 !addlicense ASF a/2570630
!play ASF 2570630
!resume ASF !checkvote ASF For the fourth tick (writing a review), one needs the IPC interface. I need to investigate.
ASFEnhance/ASFEnhance/Store/WebRequest.cs Lines 54 to 85 in b74e495
However, don't expect a simple command in my opinion: |
hi i am newbie |
command for the Review does not work |
then how to do that |
Not yet, manually |
Alright, this works as long as you have enough playtime to write a review. import json
import requests
BASE_URL = "http://localhost:1242"
TIMEOUT_IN_SECONDS = 3
def publish_review(bot_name: str, app_id: int) -> requests.Response:
endpoint = "/Api/Recommend/PublishReview/"
data = {
"Recommends": [
{
"AppId": app_id,
"RateUp": True,
"AllowReply": True,
"ForFree": True,
"Public": True,
"Comment": "This is my review for the Steam Awards.",
},
],
}
return requests.post(
url=f"{BASE_URL}{endpoint}{bot_name}",
json=data,
timeout=TIMEOUT_IN_SECONDS,
)
def delete_review(bot_name: str, app_id: int) -> requests.Response:
endpoint = "/Api/Recommend/DeleteReview/"
data = {
"AppIds": [app_id],
}
return requests.post(
url=f"{BASE_URL}{endpoint}{bot_name}",
json=data,
timeout=TIMEOUT_IN_SECONDS,
)
def is_successful(r: requests.Response, bot_name: str, app_id: int) -> bool:
d = json.loads(r.text)
return d["Result"][bot_name][str(app_id)]
def main() -> None:
for bot_name in ["MyBot_A", "MyBot_B", "MyBot_C"]:
app_id = 2570630
r = publish_review(bot_name, app_id)
if is_successful(r, bot_name, app_id):
delete_review(bot_name, app_id)
if __name__ == "__main__":
main() |
Yes, need at least 30 minutes of the game, then the review is done |
@woctezuma please how to use this script |
You need Python with Edit: You also have to accept the EULA in the config of ASFEnhance. |
The standard set of ASF + ASF Enhance is sufficient, by default. Python is not necessary at all. It is necessary that the game has enough played hours. I conducted an experiment yesterday, PLAY command is enough for the selected game, for at least 30 minutes. After that, the PREC command works fine. I didn't register EULA in the config in a special way, but PREC works.
It is necessary that the game for which the review is being written has a simulated time of at least 5 minutes. For example, you need to do a review on the DOTA game (AppID 570). Launching the game - PLAY ASF 570. Wait 30 minutes, then you can write a review - PREC ASF +570 SUPER. After the script has worked, it is advisable to delete the review - DREC ASF 570. |
I see. I did not know about
|
it's the same thing, I followed steam's called "recommend" |
I am not sure whether we have a command to vote for the first round of the Steam Awards (nominations):
Maybe a new
!vote ASF
command for this event would be feasible.Related:
The text was updated successfully, but these errors were encountered: