Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PrakharDoneria authored Dec 17, 2023
1 parent a961c8e commit 32c7d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function sendMessage() {
} else if (userInput.toLowerCase().includes('news')) {
// Fetch news using News API based on user's country (you may need to adjust this part)

Replace 'YOUR_NEWS_API_KEY' with your actual News API key

const newsApiKey = 'a1dcbaf052cd4e959ec5259eba1157db';
const country = 'in'; // You can get the user's location using Mozilla Geolocation API
const newsApiUrl = `https://newsapi.org/v2/top-headlines?country=${country}&apiKey=${newsApiKey}`;
Expand Down

0 comments on commit 32c7d2e

Please sign in to comment.