next
Privateunrated
Content
101 lines{=(idays):Sunday Monday Tuesday Wednesday Thursday Friday Saturday}
{=(COMMENT):Classes arranged in chronological order. Subject/Class, then Day, then Time, then Professor, then Classroom Number.}
{=(c1):Design graphique et mise en page}
{=(d1):Monday}
{=(t1):10:00}
{=(tt1):12:00}
{=(p1):F. Marty}
{=(cr1):211}
{=(c2):E-Com et veille info}
{=(d2):Monday}
{=(t2):14:00}
{=(tt2):16:00}
{=(p2):A. Pestre (Moodle)}
{=(cr2):209}
{=(c3):Site web dynamique}
{=(d3):Tuesday}
{=(t3):09:30}
{=(tt3):12:30}
{=(p3):M. Giovannetti}
{=(cr3):211}
{=(c4):E-Com}
{=(d4):Tuesday}
{=(t4):12:30}
{=(tt4):13:30}
{=(p4):Moodle}
{=(cr4):Cours en ligne}
{=(c5):Sémiotique de la com. (CM et TD)}
{=(d5):Thursday}
{=(t5):09:00}
{=(tt5):12:00}
{=(p5):Verdier}
{=(cr5):107}
{=(c6):Stratégies internes de communication (CM et TD)}
{=(d6):Friday}
{=(t6):09:00}
{=(tt6):11:00}
{=(p6):G. Niehaus}
{=(cr6):108}
{=(c7):Usages et innovations (CM et TD)}
{=(d7):Friday}
{=(t7):14:00}
{=(tt7):17:00}
{=(p7):S. de Velder}
{=(cr7):108}
{=(COMMENT):Each of the index block returns the index position of the weekday in indays, as well as the time with no :, such as 11000 for Monday at 10 AM.}
{=(sched):{replace(:,):{index({d1}):{idays}}{t1} {index({d2}):{idays}}{t2} {index({d3}):{idays}}{t3} {index({d4}):{idays}}{t4} {index({d5}):{idays}}{t5} {index({d6}):{idays}}{t6} {index({d7}):{idays}}{t7}}}
{=(offset):2}
{=(hins):3600}
{=(cur.dandt):{strf({m:trunc({unix}+({hins}*{offset}))}):%w%H%M}}
{=(COMMENT):in the real version the content of this variable would be {strf:%w%H%M} but we're using args to test}
{=(cur.dandt2):{args}}
{=(sgns):-1 {replace(0,1):{m:sgn({sched(1)}-{cur.dandt})} {m:sgn({sched(2)}-{cur.dandt})} {m:sgn({sched(3)}-{cur.dandt})} {m:sgn({sched(4)}-{cur.dandt})} {m:sgn({sched(5)}-{cur.dandt})} {m:sgn({sched(6)}-{cur.dandt})} {m:sgn({sched(7)}-{cur.dandt})}} 1}
{=(COMMENT):Returns the length-1 of the "sgns" variable, so that if nextclass below is equal to it, it loops back to 1.}
{=(s.length):{m:trunc({index(end):{sgns} end}-1)}}
{=(nextclass):{index(1):{sgns}}}
{=(nextclass):{if({nextclass}=={s.length}):1|{nextclass}}}
{=(o.matiere):{c{nextclass}}}
{=(o.jour):{replace(Monday,Lundi):{replace(Tuesday,Mardi):{replace(Wednesday,Mercredi):{replace(Thursday,Jeudi):{replace(Friday,Vendredi):{replace(Saturday,Samedi):{replace(Sunday,Dimanche):{d{nextclass}}}}}}}}}}
{=(o.debut):{replace(:,h):{t{nextclass}}}}
{=(o.fin):{replace(:,h):{tt{nextclass}}}}
{=(o.prof):{p{nextclass}}}
{=(o.salle):{cr{nextclass}}}
{=(f.start):{replace(:,.):{replace(:30,.5):{t{nextclass}}}}}
{=(f.end):{replace(:,.):{replace(:30,.5):{tt{nextclass}}}}}
{=(o.duree):{replace(.,,):{m:trunc({f.end}-{f.start})}}h}
{=(o.vduree):{if({in(0Z):{replace(9,Z):{replace(8,Z):{replace(7,Z):{replace(6,Z):{replace(5,Z):{replace(4,Z):{replace(3,Z):{replace(2,Z):{replace(1,Z):{o.debut}-{o.fin}}}}}}}}}}}==true):{replace(0,):{o.debut}-{o.fin}}|{o.debut}-{o.fin}}}
{=(o.temps):{replace(00,):{o.vduree} ({o.duree})}}
{=(debug):__Debug:__
idays: `{idays}`
sched: `{sched}`
cur.dandt: `{cur.dandt}`
sgns: `{sgns}`
nextclass: `{nextclass}`
f.start: `{f.start}`
f.end: `{f.end}`
o.duree: `{o.duree}`
}Embed
1 line{"color": 1931519, "title": "Prochain cours", "fields": [{"name": "**Jour**", "value": "{o.jour}", "inline": true}, {"name": "**Matière**", "value": "{o.matiere}", "inline": true}, {"name": "**Horaire**", "value": "{o.temps}", "inline": true}, {"name": "**Enseignant(e)**", "value": "{o.prof}", "inline": true}, {"name": "**Salle**", "value": "{o.salle}", "inline": true}], "description": "<#539873448755724308>"}Raw JSON
{
"id": 326818,
"created_at": "2020-09-10T21:21:29.000Z",
"tag_name": "next",
"nsfw": false,
"owner_id": "149926720114262016",
"uses": 6,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "494155061971255308",
"sharer": "149926720114262016",
"content": "{=(idays):Sunday Monday Tuesday Wednesday Thursday Friday Saturday}\n\n{=(COMMENT):Classes arranged in chronological order. Subject/Class, then Day, then Time, then Professor, then Classroom Number.}\n{=(c1):Design graphique et mise en page}\n{=(d1):Monday}\n{=(t1):10:00}\n{=(tt1):12:00}\n{=(p1):F. Marty}\n{=(cr1):211}\n\n{=(c2):E-Com et veille info}\n{=(d2):Monday}\n{=(t2):14:00}\n{=(tt2):16:00}\n{=(p2):A. Pestre (Moodle)}\n{=(cr2):209}\n\n{=(c3):Site web dynamique}\n{=(d3):Tuesday}\n{=(t3):09:30}\n{=(tt3):12:30}\n{=(p3):M. Giovannetti}\n{=(cr3):211}\n\n{=(c4):E-Com}\n{=(d4):Tuesday}\n{=(t4):12:30}\n{=(tt4):13:30}\n{=(p4):Moodle}\n{=(cr4):Cours en ligne}\n\n{=(c5):Sémiotique de la com. (CM et TD)}\n{=(d5):Thursday}\n{=(t5):09:00}\n{=(tt5):12:00}\n{=(p5):Verdier}\n{=(cr5):107}\n\n{=(c6):Stratégies internes de communication (CM et TD)}\n{=(d6):Friday}\n{=(t6):09:00}\n{=(tt6):11:00}\n{=(p6):G. Niehaus}\n{=(cr6):108}\n\n{=(c7):Usages et innovations (CM et TD)}\n{=(d7):Friday}\n{=(t7):14:00}\n{=(tt7):17:00}\n{=(p7):S. de Velder}\n{=(cr7):108}\n\n{=(COMMENT):Each of the index block returns the index position of the weekday in indays, as well as the time with no :, such as 11000 for Monday at 10 AM.}\n{=(sched):{replace(:,):{index({d1}):{idays}}{t1} {index({d2}):{idays}}{t2} {index({d3}):{idays}}{t3} {index({d4}):{idays}}{t4} {index({d5}):{idays}}{t5} {index({d6}):{idays}}{t6} {index({d7}):{idays}}{t7}}}\n\n{=(offset):2}\n{=(hins):3600}\n{=(cur.dandt):{strf({m:trunc({unix}+({hins}*{offset}))}):%w%H%M}}\n\n{=(COMMENT):in the real version the content of this variable would be {strf:%w%H%M} but we're using args to test}\n{=(cur.dandt2):{args}}\n\n{=(sgns):-1 {replace(0,1):{m:sgn({sched(1)}-{cur.dandt})} {m:sgn({sched(2)}-{cur.dandt})} {m:sgn({sched(3)}-{cur.dandt})} {m:sgn({sched(4)}-{cur.dandt})} {m:sgn({sched(5)}-{cur.dandt})} {m:sgn({sched(6)}-{cur.dandt})} {m:sgn({sched(7)}-{cur.dandt})}} 1}\n\n{=(COMMENT):Returns the length-1 of the \"sgns\" variable, so that if nextclass below is equal to it, it loops back to 1.}\n{=(s.length):{m:trunc({index(end):{sgns} end}-1)}}\n\n{=(nextclass):{index(1):{sgns}}}\n{=(nextclass):{if({nextclass}=={s.length}):1|{nextclass}}}\n\n{=(o.matiere):{c{nextclass}}}\n\n{=(o.jour):{replace(Monday,Lundi):{replace(Tuesday,Mardi):{replace(Wednesday,Mercredi):{replace(Thursday,Jeudi):{replace(Friday,Vendredi):{replace(Saturday,Samedi):{replace(Sunday,Dimanche):{d{nextclass}}}}}}}}}}\n\n{=(o.debut):{replace(:,h):{t{nextclass}}}}\n{=(o.fin):{replace(:,h):{tt{nextclass}}}}\n\n{=(o.prof):{p{nextclass}}}\n\n{=(o.salle):{cr{nextclass}}}\n\n{=(f.start):{replace(:,.):{replace(:30,.5):{t{nextclass}}}}}\n{=(f.end):{replace(:,.):{replace(:30,.5):{tt{nextclass}}}}}\n{=(o.duree):{replace(.,,):{m:trunc({f.end}-{f.start})}}h}\n\n{=(o.vduree):{if({in(0Z):{replace(9,Z):{replace(8,Z):{replace(7,Z):{replace(6,Z):{replace(5,Z):{replace(4,Z):{replace(3,Z):{replace(2,Z):{replace(1,Z):{o.debut}-{o.fin}}}}}}}}}}}==true):{replace(0,):{o.debut}-{o.fin}}|{o.debut}-{o.fin}}}\n\n{=(o.temps):{replace(00,):{o.vduree} ({o.duree})}}\n\n\n{=(debug):__Debug:__\nidays: `{idays}`\nsched: `{sched}`\ncur.dandt: `{cur.dandt}`\nsgns: `{sgns}`\nnextclass: `{nextclass}`\n\nf.start: `{f.start}`\nf.end: `{f.end}`\no.duree: `{o.duree}`\n}",
"embed": "{\"color\": 1931519, \"title\": \"Prochain cours\", \"fields\": [{\"name\": \"**Jour**\", \"value\": \"{o.jour}\", \"inline\": true}, {\"name\": \"**Matière**\", \"value\": \"{o.matiere}\", \"inline\": true}, {\"name\": \"**Horaire**\", \"value\": \"{o.temps}\", \"inline\": true}, {\"name\": \"**Enseignant(e)**\", \"value\": \"{o.prof}\", \"inline\": true}, {\"name\": \"**Salle**\", \"value\": \"{o.salle}\", \"inline\": true}], \"description\": \"<#539873448755724308>\"}",
"last_fetched": "2026-10-20T22:28:44.906Z"
}