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)
|
// use custom useragent (discord-iem-bot, chris@chrischro.me)
|
||||||
const options = {
|
const options = {
|
||||||
headers: {
|
headers: {
|
||||||
'User-Agent': '(discord-iem-bot, chris@chrischro.me)',
|
'User-Agent': 'Discord-IEM-Bot/1.0 (chris@chrischro.me)',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
// Make request
|
// Make request
|
||||||
|
@ -36,7 +36,7 @@ const getForecast = async (lat, lon) => {
|
||||||
// use same custom ua
|
// use same custom ua
|
||||||
const options = {
|
const options = {
|
||||||
headers: {
|
headers: {
|
||||||
'User-Agent': '(discord-iem-bot, chris@chrischro.me)',
|
'User-Agent': 'Discord-IEM-Bot/1.0 (chris@chrischro.me)',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
// Make request
|
// Make request
|
||||||
|
|
Loading…
Reference in a new issue