Hi, here is a command I made for you:
!addcom !command -a=_!command $(eval A=$(urlfetch json https://pastebin.com/raw/3wwHDrdk).A;try{m=decodeURIComponent("$(querystring)").match(/(\S+)\s+(\S+)/);m?(a=m[2].toLowerCase(),(a in A)?`> ${encodeURIComponent(m[1])} ${A[a]}`:`A ${Object.keys(A).join(', ')}`):'C'}catch(e){`${e}`.slice(0,400)})
!addcom _!command $(eval F=$(urlfetch json https://pastebin.com/raw/3wwHDrdk).F;try{q=decodeURIComponent("$(querystring)"),s=q.split(" ")[0],">"==s?(r=`$(urlfetch json https://lichess.org/api/user/$(2))`.replace(/\r\n/g," "),r.match(/^[A-Z]/)?r.match(/404/)?"User not found":r:(p=q.split(" ")[2],v=p.split(".").reduce((a,b)=>a[b],JSON.parse(r)),p in F?F[p](v):v)):"C"==s?"Ex: !command thibault playing":"A"==s?`Attributes: ${q.match(/\S+ (.+)/)[1]}`:"Use !command"}catch(a){`${a}`.slice(0,400)})
Customization:
My example configuration is hosted on Pastebin: https://pastebin.com/raw/3wwHDrdk
Visit this link and copy the text. Go to https://pastebin.com, paste the text, make your modifications, and create the new paste. Now use your new paste ID (found in the URL bar) to replace my example configuration's paste ID in both !command and _!command.
The A configuration object defines which attributes are supported by the command and the properties to which they map.
playing: 'playing' means that !command thibault playing will use the playing property.
currentgame: 'playing' means that !command thibault currentgame will also use the playing property.
The F configuration object specifies custom formatting for properties.
`playing: gameUrl => gameUrl ? Current game: ${gameUrl} : 'Not currently in a game' specifies a function to format the playing` property value.