Skip to content

Commit

Permalink
✨ feature: add option to specify team per game (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasvtiradentes committed Apr 16, 2023
1 parent e76d0df commit 1fb3d04
Show file tree
Hide file tree
Showing 7 changed files with 162 additions and 70 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"prettier/prettier": ["error"]
"prettier/prettier": ["error"],
"@typescript-eslint/no-explicit-any": ["off"]
}
}
45 changes: 35 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ It is worth mentioning that the tool currently informs about the following games

&nbsp;&nbsp;&nbsp;✔️ receive a daily email informing whenever at least one of your favorite teams has a match in the current date;<br>
&nbsp;&nbsp;&nbsp;✔️ select the games you are interested in to check for matches;<br>
&nbsp;&nbsp;&nbsp;✔️ option to specify teams per each game;<br>
&nbsp;&nbsp;&nbsp;✔️ specify the time to send the daily email;<br>
&nbsp;&nbsp;&nbsp;✔️ option to inform matches about only the current date or also from the following days.<br>

Expand Down Expand Up @@ -144,14 +145,38 @@ const CONFIGS = {
esports: {
favoriteTeams: ['loud', 'mibr', 'imperial'], // specify your favorite teams
games: { // select the games you're interested
csgo: true,
valorant: true,
rainbowSixSiege: true,
leagueOfLegends: true,
overwatch: true,
rocketLeague: true,
dota: true,
callOfDuty: true
csgo: {
sync: true,
teams: []
},
valorant: {
sync: true,
teams: []
},
rainbowSixSiege: {
sync: true,
teams: []
},
leagueOfLegends: {
sync: true,
teams: []
},
overwatch: {
sync: true,
teams: []
},
rocketLeague: {
sync: true,
teams: []
},
dota: {
sync: true,
teams: []
},
callOfDuty: {
sync: true,
teams: []
}
}
},
datetime: {
Expand All @@ -161,8 +186,8 @@ const CONFIGS = {
settings: {
notifyOnlyAboutTodayGames: true, // if 'false' it will alse send email in case of matchs of favorite teams in the next days
strictTeamComparasion: false, // if 'true' the name of the teams must be exact in all the matches source sites
maintanceMode: false, // development option dont need to change
loopFunction: 'checkTodayGames' // development option dont need to change
maintanceMode: false, // development option, dont need to change
loopFunction: 'checkTodayGames' // development option, dont need to change
}
};

Expand Down
2 changes: 1 addition & 1 deletion dist/EsportsNotifier.min.js

Large diffs are not rendered by default.

44 changes: 34 additions & 10 deletions dist/GAS-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,38 @@ const CONFIGS = {
esports: {
favoriteTeams: ['loud', 'mibr', 'imperial'], // specify your favorite teams
games: { // select the games you're interested
csgo: true,
valorant: true,
rainbowSixSiege: true,
leagueOfLegends: true,
overwatch: true,
rocketLeague: true,
dota: true,
callOfDuty: true
csgo: {
sync: true,
teams: []
},
valorant: {
sync: true,
teams: []
},
rainbowSixSiege: {
sync: true,
teams: []
},
leagueOfLegends: {
sync: true,
teams: []
},
overwatch: {
sync: true,
teams: []
},
rocketLeague: {
sync: true,
teams: []
},
dota: {
sync: true,
teams: []
},
callOfDuty: {
sync: true,
teams: []
}
}
},
datetime: {
Expand All @@ -19,8 +43,8 @@ const CONFIGS = {
settings: {
notifyOnlyAboutTodayGames: true, // if 'false' it will alse send email in case of matchs of favorite teams in the next days
strictTeamComparasion: false, // if 'true' the name of the teams must be exact in all the matches source sites
maintanceMode: false, // development option dont need to change
loopFunction: 'checkTodayGames' // development option dont need to change
maintanceMode: false, // development option, dont need to change
loopFunction: 'checkTodayGames' // development option, dont need to change
}
};

Expand Down
44 changes: 34 additions & 10 deletions resources/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,38 @@ export const config = {
esports: {
favoriteTeams: ['loud', 'mibr', 'imperial'], // specify your favorite teams
games: { // select the games you're interested
csgo: true,
valorant: true,
rainbowSixSiege: true,
leagueOfLegends: true,
overwatch: true,
rocketLeague: true,
dota: true,
callOfDuty: true
csgo: {
sync: true,
teams: []
},
valorant: {
sync: true,
teams: []
},
rainbowSixSiege: {
sync: true,
teams: []
},
leagueOfLegends: {
sync: true,
teams: []
},
overwatch: {
sync: true,
teams: []
},
rocketLeague: {
sync: true,
teams: []
},
dota: {
sync: true,
teams: []
},
callOfDuty: {
sync: true,
teams: []
}
}
},
datetime: {
Expand All @@ -20,7 +44,7 @@ export const config = {
settings: {
notifyOnlyAboutTodayGames: true, // if 'false' it will alse send email in case of matchs of favorite teams in the next days
strictTeamComparasion: false, // if 'true' the name of the teams must be exact in all the matches source sites
maintanceMode: false, // development option dont need to change
loopFunction: 'checkTodayGames' // development option dont need to change
maintanceMode: false, // development option, dont need to change
loopFunction: 'checkTodayGames' // development option, dont need to change
}
};

0 comments on commit 1fb3d04

Please sign in to comment.