Skip to content

Commit

Permalink
Increase meme search match priority
Browse files Browse the repository at this point in the history
  • Loading branch information
devth committed Mar 28, 2023
1 parent de10577 commit 9cddb1c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/yetibot/commands/meme.clj
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,13 @@
(scrape "https://imgflip.com" ".base-img[src!='']" "src")))

(when model/configured?
(cmd-hook ["meme" #"^meme$"]
#"^popular$" chat-instance-popular
#"^(.+?)\s*:(.+)\/(.*)$" generate-cmd
#"^(.+?)\s*:(.+)$" generate-auto-split-cmd
#"^preview\s+(.+)" preview-cmd
#"^(.+)\/(.*)$" rand-generate-cmd
#"^(\S+\s+){3,}.*" rand-generate-auto-split-cmd ; at least 4 words
#"^(?:search\s)?(.+)" search-cmd))
(cmd-hook
["meme" #"^meme$"]
#"^popular$" chat-instance-popular
#"^(?:search\s)?(.+)" search-cmd
#"^(.+?)\s*:(.+)\/(.*)$" generate-cmd
#"^(.+?)\s*:(.+)$" generate-auto-split-cmd
#"^preview\s+(.+)" preview-cmd
#"^(.+)\/(.*)$" rand-generate-cmd
; at least 4 words
#"^(\S+\s+){3,}.*" rand-generate-auto-split-cmd))

0 comments on commit 9cddb1c

Please sign in to comment.