Execution Instructions:
-
Install node.js and npm with 'sudo apt install nodejs npm'
-
Clone this repository into a folder of your choice
-
In the cloned folder, run 'npm install download firebase-admin fs telegraf'
-
Run the bot with 'node wizardo.js'
Current Bugs:
-
UnhandledPromiseRejectionWarning: Error: 400: Bad Request: message text is empty (Appears when user interacts with bot, does not affect performance at all)
-
'Yes' & 'No' inline buttons only able to display with an unprinted 'TEST' string (go and see hard to describe) (SOMETIMES THE TEST PRINTS OUT WHAT THE ACTUAL MOTHER OF)
-
Inline keyboards still available until the user leaves the bot's page
To-do Functionality:
-
Proper way to initialize bot (eg: /start or /report), right now bot just responds to any input and 'wakes up' ready to file a report
-
Data verification (proper matric numbers etc)
-
Ability to edit report (right now any mistake made requires the user to re-do the report from the start) (PARTIAL IMPLEMENT)
-
Ability for the user to check the status of his current reports (to see what stage of the repair-work has been completed)
-
Login feature (saves user name and matric for subsequent reports, prompt user at start if he is USER_NAME, MATRIC_NO).