credentials.json file summary - Nigel-Cheong/BBDC-2BPracticalSlotAlertBot GitHub Wiki
credentials.json will be automatically created when you run "start.py" script for the first time.
NOTE: All data stored in the JSON file is kept locally on your computer and should be kept private at all cost
loginCredentials
username
This should contain your NRIC, which will be placed into the ID textfield on the bbdc login portal page.
Data type: string
example: "S1234567A"
password
This should contain your password for login on bbdc login portal page
Data type: string
example: "123456"
telegramCredentials
telebotID
Place your telegram bot ID here, provided by telegram after creating a new bot
Data type: string
example: "2514112:dNibBikh-NOnBBjkNJOJNOH"
How to get telegram bot ID
Refer to setting up telegram bot wiki page here
chatID
This contains your chat ID provided by telegram. It is to allow telegram to identify your device and send alerts to you.
Data type: string
example: "623424142"
How to get your chat ID
Chat ID will be automatically filled and verified for you
generalSettings
courseSlelctionRequired
This option is to tell the bot if it needs to select the correct course. Setting it to true is required if you took other courses from BBDC such as class 3/3A. If this is your first time with BBDC, set it to false. Currently it only clicks on confirm and proceeds to next page, might add on more options in the future.
Data type: boolean
example: true
- true - bot will select the default 2B course and proceed on
- false - bot will take it as no course selection page will appear
checkNumberOfDaysInAdvance
This is the number of days in advance you would like the bot to check slot availability for you. Default will be 7 days in advance.
Data type: integer
example: 7
refreshTimeIntervalInSeconds
This is the number of seconds the bot will idle before refreshing the availability of slots.
Data type: integer
example: 600