dcsan / gitterbot

GitterBot / gitter chatbot with Wiki integration, and more!
https://gitter.im/dcsan/gitterbot
61 stars 83 forks source link

reverse searching on XXX Bonfire #51

Open dcsan opened 9 years ago

dcsan commented 9 years ago

need to match in this order too:

Anyone around who has completed the Exact Change Bonfire?

dcsan commented 9 years ago

to explain. currently we search for

Bonfire Exact Change 

but we should also look for mentions like:

Exact Change Bonfire

so we could search for something like: /[bonfire]?exact change[bonfire]?/i with some regex magic!

this would probably be patched into the scanWords area in RoomMessages

dcsan commented 9 years ago

probably the best way to do this

in the RoomMessages add a section to scan based on all the Bonfire names

get allDashedNames with this method: Bonfires.allDashedNames

in the main help room, if either of these patterns are met, we can show a small help link

try asking in the dedicated bonfire help room

dcsan commented 9 years ago

holding off on this for now as it would only be relevant in the main chat, and we already have a keyword search for "bonfire" there.