Skip to content

add list of members who didn't show up#16

Open
pingport80 wants to merge 4 commits intoosl-vvce:masterfrom
pingport80:add_list_of_sources_new
Open

add list of members who didn't show up#16
pingport80 wants to merge 4 commits intoosl-vvce:masterfrom
pingport80:add_list_of_sources_new

Conversation

@pingport80
Copy link
Copy Markdown
Member

Summary

This PR adds an enhancement which will ask the reporters on monday if their source didn't show up, in case that happens a separate list of the sources who didn't respond to their reporters will be sent on the osl-active telegram group.

Comment thread app.ts Outdated
{ merge: true }
)
db.collection("members")
doc("sourceStatus")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this supposed to be .doc("sourceStatus") ?
Looks like there's a missing dot

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes , Will add that 👍

Comment thread app.ts Outdated
const optKeyboard: telegramBot.SendMessageOptions = {
parse_mode: "Markdown",
reply_markup: {
keyboard: [[{ text: "Source Did not respond yet" }], [{ text: "Did not asked the report yet" }]]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second message could be "Did not ask the source yet" for better clarity. Feel free to suggest a different sentence

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool 🙌

Comment thread app.ts Outdated
Comment on lines +217 to +223
memberNameChatIdMap[reporterName],
`Just in case your source didn't show up, let us know.`,
optKeyboard
)
var chatId = parseInt(memberNameChatIdMap[reporterName])
responseCallbacks[chatId] = async response => {
var status = (response.text == "Source Did not respond yet") ? true : false
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understand this, User gets a message asking whether source showed up yet or they have to contacted the source yet and after that we send a message saying "just in case source didn't show up, let us know" and we leave the bot hanging and expecting a reply until it sends a message to them again?

I was thinking that this could just be a simple question asked to the user and they could press on "yes" or "no" buttons instead of taking in a sentence input and match it verbatim with "Source Did not respond yet"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, I'll change it .

Comment thread app.ts
.doc("sourceStatus")
.get()
.then( query => {
query._fieldsProto[source[idx]].booleanValue
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you paste a link to a document related to this function _fieldsProto?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants