LBOT is a IRC bot that can serve RSS feed in your channel. no copyright. no LICENSE.
Project description
LBOT is a IRC bot that can serve RSS feed in your channel. no copyright. no LICENSE.
I N S T A L L
download the tarball from pypi, https://pypi.org/project/lbot/#files
you can also download with pip3 and install globally.
> sudo pip3 install lbot --upgrade
if you want to develop on the library clone the source at bitbucket.org:
> git clone https://bitbucket.org/botd/lbot > cd lbot > sudo python3 setup.py install
U S A G E
> lbot -x (runs a command) > lbot -s (runs a shell) > lbot -d (daemon mode) > lbot localhost #lbot lbot (runs a irc bot)
logfiles can be found in ~/.lbot/logs. you can use the –owner option to set the owner of the bot to your own userhost.
R S S
add url:
> lbot -x rss https://news.ycombinator.com/rss ok 1
run the rss commad to see what urls are registered:
> lbot -x rss 0 https://news.ycombinator.com/rss
U D P
using udp to relay text into a channel, start the bot with -m udp and use the loudp program to send text to the UDP to channel server:
> tail -f ~/.lbot/logs/lbot.log | ./bin/ludp
M O D U L E S
OB contains the following modules:
lo - object library. lo.clk - clock functions. lo.dbs - database. lo.evt - basic event. lo.gnr - generic object functions. lo.hdl - handler. lo.ldr - module loader. lo.shl - shell code. lo.tms - time related functions. lo.thr - threads. lo.typ - typing. lbot.cfg - config command. lbot.cmd - list of commands. lbot.irc - irc bot. lbot.rss - feed fetcher. lbot.shl - shell code. lbot.shw - show runtime. lbot.udp - udp to irc relay lbot.usr - user management.
C O D I N G
if you want to add your own modules to the bot, you can put you .py files in a “mods” directory and use the -m option to point to that directory.
basic code is a function that gets an event as a argument:
- def command(event):
- << your code here >>
to give feedback to the user use the event.reply(txt) method:
- def command(event):
- event.reply(“yooo %s” % event.origin)
have fun coding ;]
you can contact me on IRC/freenode/#dunkbots.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size lbot-2.tar.gz (21.6 kB) | File type Source | Python version None | Upload date | Hashes View |