Here’s how to setup Moodle Bot for scheduled attendance | API | Requests | Moodle | Attendance

Attendance is now faster than blink of an eye!

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!!!

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

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 “” with “”

Note: Subject Code in the above website means, the last digits of url in your subject attendance page.

Find subject code like this.

Step 2: Create an account in cron job

Create an account in

Check your inbox to confirm your account.

Step 3: Create a cronjob

Sign in to your account after activation from here:

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 )

Uncheck “Requires HTTP authentication”

We do not need any type of authentication. So disable it.

Under Execution schedule , click on custom:


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.

Thank you.

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.

Making things happen. Tech enthusiast. Entrepreneur.