Templater plugin

Hello,
I’m new to templater and i really wanted to have a day of weak relayed block, something like today is monday you have lesson x,y,z you need books x etc. I tried making it in python but i noticed later that there is no option in adding python script (or mby there is but im blind). I tried also some JavaScript but i’m not really familiar with it and i decidet to copy some script from github. Even then i get error: Failed to load user script default export is not a function or something like this. I have no idea what i have done wrong.