overhaul random module to use regex instead of prefix match

This commit is contained in:
Adrian Malacoda
2018-02-22 20:52:47 -06:00
parent 240fb7f70e
commit c774988fc9
2 changed files with 25 additions and 19 deletions

View File

@@ -96,3 +96,9 @@ parents = ["stdin", "discord"]
[logger]
parents = ["stdin", "discord"]
filters = [{ username = "Dave" }, { username = "Kevin" }]
[icced]
type = "random"
parents = ["stdin", "discord"]
pattern = "\\bicc?ed?\\b"
responses = ["Did some carbon-based lifeform just say **I C E**?"]