belak / go-seabird

A simple IRC bot framework
MIT License
13 stars 4 forks source link

Add support for simple string matching #306

Closed belak closed 4 years ago

belak commented 5 years ago
[15:31:50]  <~belak>    !hel
[15:31:50]  <seabird51> belak: Did you mean one of the following: get, help, set
[15:31:55]  <~belak>    !stoc
[15:31:55]  <seabird51> belak: Did you mean one of the following: stock
[15:31:58]  <~belak>    !wea
[15:31:58]  <seabird51> belak: Did you mean one of the following: asn, cnam, dig, draw, g, get, gi, help, metar, play, rexp, set, taf, uno, wiki
[15:33:44]  <~belak>    !rou
[15:33:44]  <seabird51> belak: Did you mean one of the following: asn, cnam, coin, color, dig, down, draw, g, get, gi, give, hand, help, issue, karma, math, ping, play, rdns, rexp, rlvl, rrank, set, stock, taf, tiny, uno, whois, wiki
[15:33:47]  <~belak>    !roul
[15:33:47]  <seabird51> belak: Did you mean one of the following: coin, down, rdns, rexp, rlvl
[15:33:50]  <~belak>    !bang
[15:33:50]  <seabird51> belak: Did you mean one of the following: asn, dig, g, hand, math, ping, rdns, rrank, taf, tiny, uno
[15:33:55]  <~belak>    !help
[15:33:55]  <seabird51> Available commands: active, asn, callsign, cnam, coin, color, dig, dnscheck, down, draw, draw_play, forecast, forget, g, get, gi, give, hand, help, history, isearch, issue, karma, math, metar, ping, play, rdns, remind, rexp, rlvl, roulette, rrank, set, stock, taf, tiny, traceroute, uno, weather, whois, wiki. Use !help [command] for more info.
[15:33:59]  <~belak>    !roule
[15:33:59]  <seabird51> belak: Did you mean one of the following: coin, color, down, forget, give, help, issue, rdns, rexp, rlvl, roulette, rrank, uno

I can't decide if I actually like this or not, but it would be one way of fixing #303, though maybe a manual version of that would be more useful.

belak commented 4 years ago

Going to close this for now - this was a good experiment but the result wasn't great. Maybe a better option will pop up later.