Here’s how to setup Moodle Bot for scheduled attendance | API | Requests | Moodle | Attendance
Before that, we will see what exactly Moodle Bot means and what it does.
- As the name suggests, it is a bot. A bot to submit attendance.
- It automates the whole process of submitting attendance in Moodle.
- So it’s named, as Moodle Bot.
Spend your five minutes in setting this up, and you don’t need to worry about submitting attendance anymore!!!
What? Are you serious???
Yes, I am. Follow these 4 simple steps to set that up.
And no more worries of setting reminders, alarms or any shit!
Let’s get started.
Disclaimer: It’s purely intended for educational purpose.
Step 1: Prepare your URL
Head to moodlebot.rf.gd
Enter your details and click on Generate-URL button.
Congrats! Now you have your link in your hand with which you can submit attendance for corresponding subject. Now, copy it by clicking on Copy URL button in the end of the page.
UPDATE: This above copied url won’t work anymore, please replace “moodlebot.haw.tf” with “moodle-boy.herokuapp.com”
Example of a typical url: https://moodle-boy.herokuapp.com/?id=idnum&pwd=password&code=0000
wherein idnum is replaced with your ID number, password is replaced with your LMS password and code can be found as shown below.
Note: Subject Code in the above website means, the last digits of url in your subject attendance page.
Step 2: Create an account in cron job
Create an account in https://cron-job.org/en/signup/
(Make sure you setup time zone as Asia/Kolkata)
Use any mail id. Domain mail/personal mail. No issues.
Check your inbox to confirm your account.
Step 3: Create a cronjob
Sign in to your account after activation from here: https://cron-job.org/en/members/
Go to Cronjobs -> the click on Create cronjob (Top right corner.)
Enter title as “Moodle Bot” (or anything you wish)
Copy the URL you created in step 1 and paste it in URL field.
(Note: Make sure it starts with https)
Uncheck “Requires HTTP authentication”
We do not need any type of authentication. So disable it.
Under Execution schedule , click on custom:
Select All days of month, all days of week, all months and respective hours and minutes.
If you have to submit attendance between 9am to 10pm, select 9:10am or 9:20am
You can choose any settings under “Notifications.”
Make sure you check the box of “Save Responses.”
Click on Create cronjob.
Step 4: Congratulations.
You have successfully scheduled Moodle Bot.
You can check the status of executions from execution history of your cronjob for more details.
Reach out to me if you have any doubts.
Read these points!
I do not promote or support any illegal methods or processes.
Always try to submit attendance manually.
Do not completely depend on this. It’s just a backup, if incase you forget attendance or face network issues.
For technical support or queries, reach me out here.
Let’s work together!!!