myano / jenni

jenni was a python IRC bot. Project is closed. Try Sopel instead, https://sopel.chat/
https://sopel.chat/
Other
235 stars 101 forks source link

Remove the need for . before each message? #219

Closed joelwmale closed 8 years ago

joelwmale commented 8 years ago

Not an issue, but is there a way to remove the need for a . before each message?

So I could just say "weather" for example. Been looking through all the base code but can't find where it listens.

lenisko commented 8 years ago

It was somewhere in irc.py but... don't do that.. it's bad for you/other guys/bot.

joelwmale commented 8 years ago

Hmm I can't seem to find it in irc.py. It's only be and the bot, so it shouldn't be bad.

myano commented 8 years ago

You could try setting the variable "prefix" in your default.py to just an empty string:

prefix = ''

That might work but very well will have unintended consequences, because that variable is used to build a regular expression to match commands/rules.

joelwmale commented 8 years ago

I understand. Thank you @myano.