opzet.bots package

Module contents

bots unit.

class Bot(zelf)[source]

Bases: opzet.dispatcher.Dispatcher

Basic Bot.

announce(zelf, txt)[source]

announce on channels.

cc = 'none'
cmnds = {}
default = ''
dispatch(zelf, event)[source]
event(zelf, txt, obj=None)[source]
exit(zelf)[source]
explode(zelf, txt)[source]

Announce a text on all channels of all bots.

args[0] = “text to announce”

>>> import medz.bots
>>> bot = medz.bots.Bot()
>>> bot.explode("hello")
hello  
hello(zelf)[source]
join(zelf, channel)[source]
joining(zelf)[source]

join channels.

ok(zelf, txt='')[source]
push(zelf)[source]
raw(zelf, txt)[source]
say(zelf, channel, txt)[source]
shutdown(zelf)[source]
single(zelf, txt)[source]
start(zelf, *args, **kwargs)[source]
class TestBot(zelf)[source]

Bases: opzet.bots.Bot

Bot for testing purposes.

cc = '!'
default = ''
event(zelf, txt)[source]
raw(zelf, txt)[source]
say(zelf, channel, txt)[source]
testing = True
channels(bot, event)[source]
join(bot, event)[source]
nick(bot, event)[source]
part(bot, event)[source]
quit(bot, event)[source]
register(bot)[source]

Table Of Contents

Previous topic

opzet.url module

Next topic

opzet.bots.cli module