bruntonspall / xgovslackbot

A Slackbot for managing the cross government slack instance
17 stars 39 forks source link

Help mode behaves very strangely #102

Open 36degrees opened 3 years ago

36degrees commented 3 years ago

If you say help the bot lists a number of things it can tell you about.

If you reply using any of the keywords, it just repeats the same list again.

However, if you then go on to say something else (anything that is not one of the keywords), suddenly all of the responses to the keywords you mentioned are then said. For example:

Oliver Byford (Ollie)  9:55 AM
help

MichaelBotSpallAPP  9:55 AM
I can tell you about:
welcome
invites
announcements
roles
weather
Which would you like to know more about? (say done when you are finished)

Oliver Byford (Ollie)  9:55 AM
welcome

MichaelBotSpallAPP  9:55 AM
I can tell you about:
welcome
invites
announcements
roles
weather
Which would you like to know more about? (say done when you are finished)

Oliver Byford (Ollie)  9:55 AM
invites

MichaelBotSpallAPP  9:55 AM
I can tell you about:
welcome
invites
announcements
roles
weather
Which would you like to know more about? (say done when you are finished)

Oliver Byford (Ollie)  9:55 AM
invites

MichaelBotSpallAPP  9:55 AM
I can tell you about:
welcome
invites
announcements
roles
weather
Which would you like to know more about? (say done when you are finished)

Oliver Byford (Ollie)  9:55 AM
blah blah blah

MichaelBotSpallAPP  9:55 AM
If you say welcome in this private chat, I'll repeat the welcome message
9:55
To invite someone to this slack, just say invite <email> in this private chat, or mentioned to me in a channel and I'll send an email to them to invite them.
Only people with domains in the following list will get an invite: acas.org.uk, awe.co.uk, bankofengland.co.uk, biglotteryfund.org.uk, bl.uk, bmtdsl.co.uk, caa.co.uk, cqc.org.uk, ddc-mod.org, digital.nhs.uk, electoralcommission.org.uk, gov.scot, gov.uk, hee.nhs.uk, heritagefund.org.uk, hes.scot, highwaysengland.co.uk, hlf.org.uk, hmcts.net, hs2.org.uk, jncc.gov.uk, judicialappointments.digital, leadershipacademy.nhs.uk, llyw.cymru, marinemanagement.org.uk, mod.uk, naturalengland.org.uk, nature.scot, nhs.net, nhsbt.nhs.uk, nhsx.nhs.uk, nice.org.uk, os.uk, parliament.scot, parliament.uk, police.uk, scotent.co.uk, sepa.org.uk, slc.co.uk, socialcare.wales, stfc.ac.uk, tfwm.org.uk, tnlcommunityfund.org.uk, transportforthenorth.com, ukri.org, wiltonpark.org.uk, wmca.org.uk.
You can submit a pull request to change the list in https://github.com/bruntonspall/xgovslackbot/blob/master/app/domains.js to add a domain I don't know about
9:55
To invite someone to this slack, just say invite <email> in this private chat, or mentioned to me in a channel and I'll send an email to them to invite them.
Only people with domains in the following list will get an invite: acas.org.uk, awe.co.uk, bankofengland.co.uk, biglotteryfund.org.uk, bl.uk, bmtdsl.co.uk, caa.co.uk, cqc.org.uk, ddc-mod.org, digital.nhs.uk, electoralcommission.org.uk, gov.scot, gov.uk, hee.nhs.uk, heritagefund.org.uk, hes.scot, highwaysengland.co.uk, hlf.org.uk, hmcts.net, hs2.org.uk, jncc.gov.uk, judicialappointments.digital, leadershipacademy.nhs.uk, llyw.cymru, marinemanagement.org.uk, mod.uk, naturalengland.org.uk, nature.scot, nhs.net, nhsbt.nhs.uk, nhsx.nhs.uk, nice.org.uk, os.uk, parliament.scot, parliament.uk, police.uk, scotent.co.uk, sepa.org.uk, slc.co.uk, socialcare.wales, stfc.ac.uk, tfwm.org.uk, tnlcommunityfund.org.uk, transportforthenorth.com, ukri.org, wiltonpark.org.uk, wmca.org.uk.
You can submit a pull request to change the list in https://github.com/bruntonspall/xgovslackbot/blob/master/app/domains.js to add a domain I don't know about
9:55
I didn't understand that, so I assume you are done
36degrees commented 3 years ago

Related, based on https://github.com/bruntonspall/xgovslackbot/pull/96 it seems like the instructions around invites are out of date.