mirror of
https://github.com/TheNetsky/Microsoft-Rewards-Script.git
synced 2026-01-18 14:03:58 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8ddb65b21 | ||
|
|
0e8ca0c862 | ||
|
|
ffb4a28785 | ||
|
|
efbadb7d0b | ||
|
|
f9fcbd851e |
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
dist
|
||||||
|
node_modules
|
||||||
51
.github/workflows/docker-release.yml
vendored
Normal file
51
.github/workflows/docker-release.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
name: Build and Push Docker Image on Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY: ghcr.io
|
||||||
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Log in to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ env.REGISTRY }}
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Extract metadata
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
tags: |
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
TODO
|
TODO
|
||||||
|
|
||||||
|
[For installation see the main (v1) or v2 branch (mostly the same)](https://github.com/TheNetsky/Microsoft-Rewards-Script/tree/main?tab=readme-ov-file#setup)
|
||||||
|
|
||||||
## Disclaimer
|
## Disclaimer
|
||||||
|
|
||||||
Use at your own risk.
|
Use at your own risk.
|
||||||
|
|||||||
582
src/functions/queries.json
Normal file
582
src/functions/queries.json
Normal file
@@ -0,0 +1,582 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"title": "Houses near you",
|
||||||
|
"queries": [
|
||||||
|
"Houses near me",
|
||||||
|
"Homes for sale near me",
|
||||||
|
"Apartments near me",
|
||||||
|
"Real estate listings near me",
|
||||||
|
"Zillow homes near me",
|
||||||
|
"houses for rent near me"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Feeling symptoms?",
|
||||||
|
"queries": [
|
||||||
|
"Rash on forearm",
|
||||||
|
"Stuffy nose",
|
||||||
|
"Tickling cough",
|
||||||
|
"sore throat remedies",
|
||||||
|
"headache and nausea causes",
|
||||||
|
"fever symptoms adults"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Get your shopping done faster",
|
||||||
|
"queries": [
|
||||||
|
"Buy PS5",
|
||||||
|
"Buy Xbox",
|
||||||
|
"Chair deals",
|
||||||
|
"wireless mouse deals",
|
||||||
|
"best gaming headset price",
|
||||||
|
"laptop deals",
|
||||||
|
"buy office chair",
|
||||||
|
"SSD deals"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Translate anything",
|
||||||
|
"queries": [
|
||||||
|
"Translate welcome home to Korean",
|
||||||
|
"Translate welcome home to Japanese",
|
||||||
|
"Translate goodbye to Japanese",
|
||||||
|
"Translate good morning to Spanish",
|
||||||
|
"Translate thank you to French",
|
||||||
|
"Translate see you later to Italian"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Search the lyrics of a song",
|
||||||
|
"queries": [
|
||||||
|
"Debarge rhythm of the night lyrics",
|
||||||
|
"bohemian rhapsody lyrics",
|
||||||
|
"hotel california lyrics",
|
||||||
|
"blinding lights lyrics",
|
||||||
|
"lose yourself lyrics",
|
||||||
|
"smells like teen spirit lyrics"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Let's watch that movie again!",
|
||||||
|
"queries": [
|
||||||
|
"Alien movie",
|
||||||
|
"Aliens movie",
|
||||||
|
"Alien 3 movie",
|
||||||
|
"Predator movie",
|
||||||
|
"Terminator movie",
|
||||||
|
"John Wick movie",
|
||||||
|
"Interstellar movie",
|
||||||
|
"The Matrix movie"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Plan a quick getaway",
|
||||||
|
"queries": [
|
||||||
|
"Flights Amsterdam to Tokyo",
|
||||||
|
"Flights New York to Tokyo",
|
||||||
|
"cheap flights to paris",
|
||||||
|
"flights amsterdam to rome",
|
||||||
|
"last minute flight deals",
|
||||||
|
"direct flights from amsterdam",
|
||||||
|
"weekend getaway europe",
|
||||||
|
"best time to visit tokyo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Discover open job roles",
|
||||||
|
"queries": [
|
||||||
|
"jobs at Microsoft",
|
||||||
|
"Microsoft Job Openings",
|
||||||
|
"Jobs near me",
|
||||||
|
"jobs at Boeing worked",
|
||||||
|
"software engineer jobs near me",
|
||||||
|
"remote developer jobs",
|
||||||
|
"IT jobs netherlands",
|
||||||
|
"customer support jobs near me"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "You can track your package",
|
||||||
|
"queries": [
|
||||||
|
"USPS tracking",
|
||||||
|
"UPS tracking",
|
||||||
|
"DHL tracking",
|
||||||
|
"FedEx tracking",
|
||||||
|
"track my package",
|
||||||
|
"international package tracking"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Find somewhere new to explore",
|
||||||
|
"queries": [
|
||||||
|
"Directions to Berlin",
|
||||||
|
"Directions to Tokyo",
|
||||||
|
"Directions to New York",
|
||||||
|
"things to do in berlin",
|
||||||
|
"tourist attractions tokyo",
|
||||||
|
"best places to visit in new york",
|
||||||
|
"hidden gems near me",
|
||||||
|
"day trips near me"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Too tired to cook tonight?",
|
||||||
|
"queries": [
|
||||||
|
"KFC near me",
|
||||||
|
"Burger King near me",
|
||||||
|
"McDonalds near me",
|
||||||
|
"pizza delivery near me",
|
||||||
|
"restaurants open now",
|
||||||
|
"best takeout near me",
|
||||||
|
"quick dinner ideas",
|
||||||
|
"easy dinner recipes"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Quickly convert your money",
|
||||||
|
"queries": [
|
||||||
|
"convert 250 USD to yen",
|
||||||
|
"convert 500 USD to yen",
|
||||||
|
"usd to eur",
|
||||||
|
"gbp to eur",
|
||||||
|
"eur to jpy",
|
||||||
|
"currency converter",
|
||||||
|
"exchange rate today",
|
||||||
|
"1000 yen to euro"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Learn to cook a new recipe",
|
||||||
|
"queries": [
|
||||||
|
"How to cook ratatouille",
|
||||||
|
"How to cook lasagna",
|
||||||
|
"easy pasta recipe",
|
||||||
|
"how to make pancakes",
|
||||||
|
"how to make fried rice",
|
||||||
|
"simple chicken recipe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Find places to stay!",
|
||||||
|
"queries": [
|
||||||
|
"Hotels Berlin Germany",
|
||||||
|
"Hotels Amsterdam Netherlands",
|
||||||
|
"hotels in paris",
|
||||||
|
"best hotels in tokyo",
|
||||||
|
"cheap hotels london",
|
||||||
|
"places to stay in barcelona",
|
||||||
|
"hotel deals",
|
||||||
|
"booking hotels near me"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "How's the economy?",
|
||||||
|
"queries": [
|
||||||
|
"sp 500",
|
||||||
|
"nasdaq",
|
||||||
|
"dow jones today",
|
||||||
|
"inflation rate europe",
|
||||||
|
"interest rates today",
|
||||||
|
"stock market today",
|
||||||
|
"economic news",
|
||||||
|
"recession forecast"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Who won?",
|
||||||
|
"queries": [
|
||||||
|
"braves score",
|
||||||
|
"champions league results",
|
||||||
|
"premier league results",
|
||||||
|
"nba score",
|
||||||
|
"formula 1 winner",
|
||||||
|
"latest football scores",
|
||||||
|
"ucl final winner",
|
||||||
|
"world cup final result"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Gaming time",
|
||||||
|
"queries": [
|
||||||
|
"Overwatch video game",
|
||||||
|
"Call of duty video game",
|
||||||
|
"best games 2025",
|
||||||
|
"top xbox games",
|
||||||
|
"popular steam games",
|
||||||
|
"new pc games",
|
||||||
|
"game reviews",
|
||||||
|
"best co-op games"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Expand your vocabulary",
|
||||||
|
"queries": [
|
||||||
|
"definition definition",
|
||||||
|
"meaning of serendipity",
|
||||||
|
"define nostalgia",
|
||||||
|
"synonym for happy",
|
||||||
|
"define eloquent",
|
||||||
|
"what does epiphany mean",
|
||||||
|
"word of the day",
|
||||||
|
"define immaculate"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "What time is it?",
|
||||||
|
"queries": [
|
||||||
|
"Japan time",
|
||||||
|
"New York time",
|
||||||
|
"time in london",
|
||||||
|
"time in tokyo",
|
||||||
|
"current time in amsterdam",
|
||||||
|
"time in los angeles"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Find deals on Bing",
|
||||||
|
"queries": [
|
||||||
|
"best laptop deals",
|
||||||
|
"tech deals today",
|
||||||
|
"wireless earbuds deals",
|
||||||
|
"gaming chair deals",
|
||||||
|
"discount codes electronics",
|
||||||
|
"best amazon deals today",
|
||||||
|
"smartphone deals",
|
||||||
|
"ssd deals"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Prepare for the weather",
|
||||||
|
"queries": [
|
||||||
|
"weather tomorrow",
|
||||||
|
"weekly weather forecast",
|
||||||
|
"rain forecast today",
|
||||||
|
"weather in amsterdam",
|
||||||
|
"storm forecast europe",
|
||||||
|
"uv index today",
|
||||||
|
"temperature this weekend",
|
||||||
|
"snow forecast"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Track your delivery",
|
||||||
|
"queries": [
|
||||||
|
"track my package",
|
||||||
|
"postnl track and trace",
|
||||||
|
"dhl parcel tracking",
|
||||||
|
"ups tracking",
|
||||||
|
"fedex tracking",
|
||||||
|
"usps tracking",
|
||||||
|
"parcel tracking",
|
||||||
|
"international package tracking"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Explore a new spot today",
|
||||||
|
"queries": [
|
||||||
|
"places to visit near me",
|
||||||
|
"things to do near me",
|
||||||
|
"hidden gems netherlands",
|
||||||
|
"best museums near me",
|
||||||
|
"parks near me",
|
||||||
|
"tourist attractions nearby",
|
||||||
|
"best cafes near me",
|
||||||
|
"day trip ideas"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Maisons près de chez vous",
|
||||||
|
"queries": [
|
||||||
|
"Maisons près de chez moi",
|
||||||
|
"Maisons à vendre près de chez moi",
|
||||||
|
"Appartements près de chez moi",
|
||||||
|
"Annonces immobilières près de chez moi",
|
||||||
|
"Maisons à louer près de chez moi"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Vous ressentez des symptômes ?",
|
||||||
|
"queries": [
|
||||||
|
"Éruption cutanée sur l'avant-bras",
|
||||||
|
"Nez bouché",
|
||||||
|
"Toux chatouilleuse",
|
||||||
|
"mal de gorge remèdes",
|
||||||
|
"maux de tête causes",
|
||||||
|
"symptômes de la grippe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Faites vos achats plus vite",
|
||||||
|
"queries": [
|
||||||
|
"Acheter une PS5",
|
||||||
|
"Acheter une Xbox",
|
||||||
|
"Offres sur les chaises",
|
||||||
|
"offres ordinateur portable",
|
||||||
|
"meilleures offres casque",
|
||||||
|
"acheter souris sans fil",
|
||||||
|
"promotions ssd",
|
||||||
|
"bons plans tech"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Traduisez tout !",
|
||||||
|
"queries": [
|
||||||
|
"Traduction bienvenue à la maison en coréen",
|
||||||
|
"Traduction bienvenue à la maison en japonais",
|
||||||
|
"Traduction au revoir en japonais",
|
||||||
|
"Traduire bonjour en espagnol",
|
||||||
|
"Traduire merci en anglais",
|
||||||
|
"Traduire à plus tard en italien"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Rechercher paroles de chanson",
|
||||||
|
"queries": [
|
||||||
|
"Paroles de Debarge rhythm of the night",
|
||||||
|
"paroles bohemian rhapsody",
|
||||||
|
"paroles hotel california",
|
||||||
|
"paroles blinding lights",
|
||||||
|
"paroles lose yourself",
|
||||||
|
"paroles smells like teen spirit"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Et si nous regardions ce film une nouvelle fois?",
|
||||||
|
"queries": [
|
||||||
|
"Alien film",
|
||||||
|
"Film Aliens",
|
||||||
|
"Film Alien 3",
|
||||||
|
"Film Predator",
|
||||||
|
"Film Terminator",
|
||||||
|
"Film John Wick",
|
||||||
|
"Film Interstellar",
|
||||||
|
"Film Matrix"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Planifiez une petite escapade",
|
||||||
|
"queries": [
|
||||||
|
"Vols Amsterdam-Tokyo",
|
||||||
|
"Vols New York-Tokyo",
|
||||||
|
"vols pas chers paris",
|
||||||
|
"vols amsterdam rome",
|
||||||
|
"offres vols dernière minute",
|
||||||
|
"week-end en europe",
|
||||||
|
"vols directs depuis amsterdam"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Consulter postes à pourvoir",
|
||||||
|
"queries": [
|
||||||
|
"emplois chez Microsoft",
|
||||||
|
"Offres d'emploi Microsoft",
|
||||||
|
"Emplois près de chez moi",
|
||||||
|
"emplois chez Boeing",
|
||||||
|
"emplois développeur à distance",
|
||||||
|
"emplois informatique pays-bas",
|
||||||
|
"offres d'emploi près de chez moi"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Vous pouvez suivre votre colis",
|
||||||
|
"queries": [
|
||||||
|
"Suivi Chronopost",
|
||||||
|
"suivi colis",
|
||||||
|
"suivi DHL",
|
||||||
|
"suivi UPS",
|
||||||
|
"suivi FedEx",
|
||||||
|
"suivi international colis"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Trouver un endroit à découvrir",
|
||||||
|
"queries": [
|
||||||
|
"Itinéraire vers Berlin",
|
||||||
|
"Itinéraire vers Tokyo",
|
||||||
|
"Itinéraire vers New York",
|
||||||
|
"que faire à berlin",
|
||||||
|
"attractions tokyo",
|
||||||
|
"meilleurs endroits à visiter à new york",
|
||||||
|
"endroits à visiter près de chez moi"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Trop fatigué pour cuisiner ce soir ?",
|
||||||
|
"queries": [
|
||||||
|
"KFC près de chez moi",
|
||||||
|
"Burger King près de chez moi",
|
||||||
|
"McDonalds près de chez moi",
|
||||||
|
"livraison pizza près de chez moi",
|
||||||
|
"restaurants ouverts maintenant",
|
||||||
|
"idées dîner rapide",
|
||||||
|
"quoi manger ce soir"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Convertissez rapidement votre argent",
|
||||||
|
"queries": [
|
||||||
|
"convertir 250 EUR en yen",
|
||||||
|
"convertir 500 EUR en yen",
|
||||||
|
"usd en eur",
|
||||||
|
"gbp en eur",
|
||||||
|
"eur en jpy",
|
||||||
|
"convertisseur de devises",
|
||||||
|
"taux de change aujourd'hui",
|
||||||
|
"1000 yen en euro"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Apprenez à cuisiner une nouvelle recette",
|
||||||
|
"queries": [
|
||||||
|
"Comment faire cuire la ratatouille",
|
||||||
|
"Comment faire cuire les lasagnes",
|
||||||
|
"recette pâtes facile",
|
||||||
|
"comment faire des crêpes",
|
||||||
|
"recette riz sauté",
|
||||||
|
"recette poulet simple"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Trouvez des emplacements pour rester!",
|
||||||
|
"queries": [
|
||||||
|
"Hôtels Berlin Allemagne",
|
||||||
|
"Hôtels Amsterdam Pays-Bas",
|
||||||
|
"hôtels paris",
|
||||||
|
"meilleurs hôtels tokyo",
|
||||||
|
"hôtels pas chers londres",
|
||||||
|
"hébergement barcelone",
|
||||||
|
"offres hôtels",
|
||||||
|
"hôtels près de chez moi"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Comment se porte l'économie ?",
|
||||||
|
"queries": [
|
||||||
|
"CAC 40",
|
||||||
|
"indice dax",
|
||||||
|
"dow jones aujourd'hui",
|
||||||
|
"inflation europe",
|
||||||
|
"taux d'intérêt aujourd'hui",
|
||||||
|
"marché boursier aujourd'hui",
|
||||||
|
"actualités économie",
|
||||||
|
"prévisions récession"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Qui a gagné ?",
|
||||||
|
"queries": [
|
||||||
|
"score du Paris Saint-Germain",
|
||||||
|
"résultats ligue des champions",
|
||||||
|
"résultats premier league",
|
||||||
|
"score nba",
|
||||||
|
"vainqueur formule 1",
|
||||||
|
"derniers scores football",
|
||||||
|
"vainqueur finale ldc"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Temps de jeu",
|
||||||
|
"queries": [
|
||||||
|
"Jeu vidéo Overwatch",
|
||||||
|
"Jeu vidéo Call of Duty",
|
||||||
|
"meilleurs jeux 2025",
|
||||||
|
"top jeux xbox",
|
||||||
|
"jeux steam populaires",
|
||||||
|
"nouveaux jeux pc",
|
||||||
|
"avis jeux vidéo",
|
||||||
|
"meilleurs jeux coop"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Enrichissez votre vocabulaire",
|
||||||
|
"queries": [
|
||||||
|
"definition definition",
|
||||||
|
"signification sérendipité",
|
||||||
|
"définir nostalgie",
|
||||||
|
"synonyme heureux",
|
||||||
|
"définir éloquent",
|
||||||
|
"mot du jour",
|
||||||
|
"que veut dire épiphanie"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Quelle heure est-il ?",
|
||||||
|
"queries": [
|
||||||
|
"Heure du Japon",
|
||||||
|
"Heure de New York",
|
||||||
|
"heure de londres",
|
||||||
|
"heure de tokyo",
|
||||||
|
"heure actuelle amsterdam",
|
||||||
|
"heure de los angeles"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Vérifier la météo",
|
||||||
|
"queries": [
|
||||||
|
"Météo de Paris",
|
||||||
|
"Météo de la France",
|
||||||
|
"météo demain",
|
||||||
|
"prévisions météo semaine",
|
||||||
|
"météo amsterdam",
|
||||||
|
"risque de pluie aujourd'hui"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Tenez-vous informé des sujets d'actualité",
|
||||||
|
"queries": [
|
||||||
|
"Augmentation Impots",
|
||||||
|
"Mort célébrité",
|
||||||
|
"actualités france",
|
||||||
|
"actualité internationale",
|
||||||
|
"dernières nouvelles économie",
|
||||||
|
"news technologie"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Préparez-vous pour la météo",
|
||||||
|
"queries": [
|
||||||
|
"météo demain",
|
||||||
|
"prévisions météo semaine",
|
||||||
|
"météo amsterdam",
|
||||||
|
"risque de pluie aujourd'hui",
|
||||||
|
"indice uv aujourd'hui",
|
||||||
|
"température ce week-end",
|
||||||
|
"alerte tempête"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Suivez votre livraison",
|
||||||
|
"queries": [
|
||||||
|
"suivi colis",
|
||||||
|
"postnl suivi colis",
|
||||||
|
"suivi DHL colis",
|
||||||
|
"suivi UPS",
|
||||||
|
"suivi FedEx",
|
||||||
|
"suivi international colis",
|
||||||
|
"suivre ma livraison"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Trouvez des offres sur Bing",
|
||||||
|
"queries": [
|
||||||
|
"meilleures offres ordinateur portable",
|
||||||
|
"bons plans tech",
|
||||||
|
"promotions écouteurs",
|
||||||
|
"offres chaise gamer",
|
||||||
|
"codes promo électronique",
|
||||||
|
"meilleures offres amazon aujourd'hui"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Explorez un nouvel endroit aujourd'hui",
|
||||||
|
"queries": [
|
||||||
|
"endroits à visiter près de chez moi",
|
||||||
|
"que faire près de chez moi",
|
||||||
|
"endroits insolites pays-bas",
|
||||||
|
"meilleurs musées près de chez moi",
|
||||||
|
"parcs près de chez moi",
|
||||||
|
"attractions touristiques à proximité",
|
||||||
|
"meilleurs cafés près de chez moi"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -87,6 +87,7 @@ export class MicrosoftRewardsBot {
|
|||||||
private pointsCanCollect = 0
|
private pointsCanCollect = 0
|
||||||
|
|
||||||
private activeWorkers: number
|
private activeWorkers: number
|
||||||
|
private exitedWorkers: number[]
|
||||||
private browserFactory: Browser = new Browser(this)
|
private browserFactory: Browser = new Browser(this)
|
||||||
private accounts: Account[]
|
private accounts: Account[]
|
||||||
private workers: Workers
|
private workers: Workers
|
||||||
@@ -115,6 +116,7 @@ export class MicrosoftRewardsBot {
|
|||||||
}
|
}
|
||||||
this.config = loadConfig()
|
this.config = loadConfig()
|
||||||
this.activeWorkers = this.config.clusters
|
this.activeWorkers = this.config.clusters
|
||||||
|
this.exitedWorkers = []
|
||||||
}
|
}
|
||||||
|
|
||||||
get isMobile(): boolean {
|
get isMobile(): boolean {
|
||||||
@@ -182,6 +184,11 @@ export class MicrosoftRewardsBot {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const onWorkerDone = async (label: 'exit' | 'disconnect', worker: Worker, code?: number): Promise<void> => {
|
const onWorkerDone = async (label: 'exit' | 'disconnect', worker: Worker, code?: number): Promise<void> => {
|
||||||
|
const { pid } = worker.process
|
||||||
|
|
||||||
|
if (!pid || this.exitedWorkers.includes(pid)) return
|
||||||
|
else this.exitedWorkers.push(pid)
|
||||||
|
|
||||||
this.activeWorkers -= 1
|
this.activeWorkers -= 1
|
||||||
this.logger.warn(
|
this.logger.warn(
|
||||||
'main',
|
'main',
|
||||||
@@ -226,6 +233,7 @@ export class MicrosoftRewardsBot {
|
|||||||
if (process.send) {
|
if (process.send) {
|
||||||
process.send({ __stats: stats })
|
process.send({ __stats: stats })
|
||||||
}
|
}
|
||||||
|
process.disconnect()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.logger.error(
|
this.logger.error(
|
||||||
'main',
|
'main',
|
||||||
|
|||||||
Reference in New Issue
Block a user