We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I like to greet students by their name, something like:
"Hi {name}, how can I help you?"
If I could support that by default it would save me some time.
Seems simple enough, just save the string here (No change).
Then template here, filling in relevant variables to the user.
You could use pupa:
export function useTeams( queueId: number, users: string, message: string ): () => void { const isQueueOnline = useQueue(queueId).queue?.room.startsWith("Online"); function openTeams(): void { const userData = getUserDataFromSomewhere(users); // TODO const filledInMessage = pupa(message, { name: userData.name }, { ignoreMissing: true}) if (isQueueOnline) { window.open( `https://teams.microsoft.com/l/chat/0/0?users=${users}&message=${filledInMessage}` ); } } return openTeams; }
The text was updated successfully, but these errors were encountered:
hi! this sounds really cool! I can take a stab at it, thanks for bringing it up :)
Sorry, something went wrong.
Hey are you working on it ? I would like to work on this issue too !
No branches or pull requests
I like to greet students by their name, something like:
If I could support that by default it would save me some time.
Seems simple enough, just save the string here (No change).
Then template here, filling in relevant variables to the user.
You could use pupa:
The text was updated successfully, but these errors were encountered: