forked from ChrisChrome/weather-bot
Update UA
This commit is contained in:
parent
2ff7a2522a
commit
5168c5c582
4
funcs.js
4
funcs.js
|
@ -8,7 +8,7 @@ const getCoordinates = async (location) => {
|
|||
// use custom useragent (discord-iem-bot, chris@chrischro.me)
|
||||
const options = {
|
||||
headers: {
|
||||
'User-Agent': '(discord-iem-bot, chris@chrischro.me)',
|
||||
'User-Agent': 'Discord-IEM-Bot/1.0 (chris@chrischro.me)',
|
||||
},
|
||||
};
|
||||
// Make request
|
||||
|
@ -36,7 +36,7 @@ const getForecast = async (lat, lon) => {
|
|||
// use same custom ua
|
||||
const options = {
|
||||
headers: {
|
||||
'User-Agent': '(discord-iem-bot, chris@chrischro.me)',
|
||||
'User-Agent': 'Discord-IEM-Bot/1.0 (chris@chrischro.me)',
|
||||
},
|
||||
};
|
||||
// Make request
|
||||
|
|
Loading…
Reference in a new issue