StampyAI / stampy

A Discord bot for the Robert Miles AI server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Factoids not actually case-insensitive

ProducerMatt opened this issue · comments

An example:

Matt: S, remember what is your purpose? <reply> I pass butter
Stampy: Ok ProducerMatt, remembering that "what is your purpose?" reply "I pass butter"
Matt: What is your purpose?
Matt: what is your purpose?
Stampy: I pass butter

This is surprising because case insensitivity is enabled at several points in Factoids.py

  • Line 29: insensitive regex
  • Line 293: COLLATE NOCASE

At line 280 case_sensitive_like = false could be used but that wouldn't cover the problem above.