fix(defs): handle false positive and negative

This commit is contained in:
Anna 2020-09-05 22:31:08 -04:00
parent 5905490cb6
commit 639c48ff61
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0
3 changed files with 6 additions and 2 deletions

View File

@ -23,6 +23,7 @@ namespace NoSoliciting.Tests.DefinitionsTests.Global {
new TestMessage(@"Golden Crow [FC] offering new and old players a save place to hang and have fun with - join the weebs now \o/ /pm for info "),
new TestMessage("«ToC» recruiting active members. Join the party, send me a /Tell or stop by the FC house (Goblet P13, W19) for more information."),
new TestMessage("FC Toxic looking for new memeber, Fc house, master crafter and gatherer, buffs available for new players as well as end game"),
new TestMessage("<Panic> is recruiting! We're a slowly growing fc that would appreciate some new faces. /tell for more info or an inv <3"),
});
public static object[][] DataNegatives => DefUtils.DataFromMessages(new TestMessage[] {

View File

@ -22,6 +22,7 @@ namespace NoSoliciting.Tests.DefinitionsTests.PartyFinder {
@"Selling 1x Eldthurs Horn for 8mil. Skip MB taxes \o/ Join if interested",
"Selling Phanta mats, let me know what you want and I can deliver it to you. 2k for 300k. Join the party don't /tell please",
"#1 NA WHOLESALER! NEO SET-660K! i490 SET-1.5M(w/DISCOUNT OPTIONS)! BUYING PHANTAS ANY AMOUNT 3K! JOIN PARTY!!!",
"1/2 chest Lootmaster for sam weap. If weap drops then coffer is rolled on. KB uptime. Ilya. If you just want a page or to help.",
});
[Theory]

View File

@ -48,7 +48,7 @@
# slower but more flexible, and they are specified by using a regex
# key, as can be seen below.
version: 28
version: 29
# This is the URL the plugin will POST reports to.
report_url: https://nosol.annaclemens.io/report
@ -106,9 +106,9 @@ party_finder:
- $ e l l
- sale
- s a l e
- offer
- price
- cheap
- regex: '\boffer\b'
# content
- - eden
- savage
@ -230,5 +230,7 @@ global:
- help
- new player
- new member
- new people
- new face
- regex: '\bold\b'
- regex: '\bvets?\b'