Skip to content

Commit

Permalink
Merge pull request #3 from ayan-biswas0412/dev
Browse files Browse the repository at this point in the history
fix:cors issue
  • Loading branch information
ayan-biswas0412 authored Jun 11, 2021
2 parents 536edbc + ca433ef commit 4509eff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions cmds/slot/slotin7dayspin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions cmds/slot/slotinpin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4509eff

Please sign in to comment.