cslbot.hooks package

Submodules

cslbot.hooks.autodeop module

cslbot.hooks.autodeop.handle(_, msg, args)[source]

cslbot.hooks.babble module

cslbot.hooks.babble.hook(send, msg, args)[source]

cslbot.hooks.band module

cslbot.hooks.band.handle(send, msg, args)[source]
cslbot.hooks.band.random() → x in the interval [0, 1).

cslbot.hooks.bob module

cslbot.hooks.bob.handle(send, msg, args)[source]

cslbot.hooks.butt module

cslbot.hooks.butt.handle(send, msg, args)[source]
cslbot.hooks.butt.random() → x in the interval [0, 1).

cslbot.hooks.caps module

cslbot.hooks.caps.handle(_, msg, args)[source]

Check for capslock abuse.

Check if a line is more than THRESHOLD percent uppercase.
If this is the second line in a row, kick the user.

cslbot.hooks.ctf module

cslbot.hooks.ctf.handle(send, msg, args)[source]

cslbot.hooks.note module

cslbot.hooks.note.handle(send, _, args)[source]

cslbot.hooks.reddit module

cslbot.hooks.reddit.handle(send, msg, args)[source]

cslbot.hooks.scores module

cslbot.hooks.scores.handle(send, msg, args)[source]

Handles scores

If it’s a ++ add one point unless the user is trying to promote
themselves.
Otherwise substract one point.

cslbot.hooks.stallman module

cslbot.hooks.stallman.handle(send, msg, args)[source]

cslbot.hooks.understanding module

cslbot.hooks.understanding.handle(send, msg, _)[source]
cslbot.hooks.understanding.random() → x in the interval [0, 1).

cslbot.hooks.url module

cslbot.hooks.url.get_urls(msg)[source]
cslbot.hooks.url.handle(send, msg, args)[source]

Get titles for urls.

Generate a short url.
Get the page title.

cslbot.hooks.voice module

cslbot.hooks.voice.handle(send, _, args)[source]

cslbot.hooks.xkcd module

cslbot.hooks.xkcd.handle(send, msg, args)[source]

Implements several XKCD comics

Module contents