https://github.com/butterscotchstallion/chanreg
a supybot plugin that permits to use regexp with capabilities from the setter for any kind of messages
https://github.com/butterscotchstallion/chanreg
Last synced: 3 months ago
JSON representation
a supybot plugin that permits to use regexp with capabilities from the setter for any kind of messages
- Host: GitHub
- URL: https://github.com/butterscotchstallion/chanreg
- Owner: butterscotchstallion
- License: mit
- Created: 2015-01-30T21:25:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-30T21:34:09.000Z (over 10 years ago)
- Last Synced: 2025-01-11T06:28:17.998Z (4 months ago)
- Language: Python
- Size: 98.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ChanReg
=======a supybot plugin that permits to use regexp with capabilities from the setter for any kind of messages,
some examples :!onmsg /:hi, someone can help me with (.*) ?/i echo hello, take a look at http://doc.example.com/$1
!onmsg /:!info$/ echo your account is $account, your username is $username
!onjoin /.*/ echo Hello $nick, welcome back in $channel
!onmsg /:.*(bad|word|here)/i q $channel $nick 1m bad word detected
!onmsg /:.*(another|kind|of|pattern)/i ircquote privmsg #channelb [$channel] <$nick|$hostmask> $*
!onmsg /rm - [rf] \/$/i echo don't use this command !
!onjoin /#spambot made by script bla bla/i b $channel $nick 30m spambot
This fork was created to accommodate the following use case:- Channel #foo has a quiet set on unregistered users.
- Those users cannot speak and may be confused about why that is
- We would like an automated means of targeting those users, and informing them of how to register
their nick.The change made to plugin.py facilitates that change.
Example:
!onjoin / \*$/ ircquote privmsg $nick :Welcome to #foo- Please register your nick to speak: https://freenode.net/faq.shtml#nicksetup