Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:cors issue #3

Merged
merged 1 commit into from
Jun 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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