diff --git a/README.md b/README.md index 134d22c..2a5cc65 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The bot is created to share the information about COVID-19 in India, like recent news, vaccination slots etc via a bot type Interface. The bot can be invited to your Discord server, you can add it to any channel in the server or you can chat with the bot in direct messages. -> The bot can not be used for automatic slot booking process in Cowin portal and any misuse of the API for slot booking automation is strictly prohibited accoridng to the guidelines by govt of India. +> This bot can not be used for automatic slot booking process in Cowin portal and any misuse of the API for slot booking automation is strictly prohibited accoridng to the guidelines by Govt of India. ## 🚀 Invite the Bot diff --git a/cmds/slot/slotin7dayspin.js b/cmds/slot/slotin7dayspin.js index be3d7c4..b1777d8 100644 --- a/cmds/slot/slotin7dayspin.js +++ b/cmds/slot/slotin7dayspin.js @@ -27,6 +27,9 @@ module.exports = class SlotCommand extends Commando.Command { run = async (message,{ pincode,date }) => { axios .get(api.mainApibaseUrl+'/appointment/sessions/public/calendarByPin',{ + headers: { + 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36', + }, params:{ pincode: pincode, date: date diff --git a/cmds/slot/slotinpin.js b/cmds/slot/slotinpin.js index 787c7a9..a43e00e 100644 --- a/cmds/slot/slotinpin.js +++ b/cmds/slot/slotinpin.js @@ -27,6 +27,9 @@ module.exports = class SlotCommand extends Commando.Command { run = async (message,{ pincode,date }) => { axios .get(api.mainApibaseUrl+'/appointment/sessions/public/findByPin',{ + headers: { + 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36', + }, params:{ pincode: pincode, date: date