UDP


about


author:Bart Thate <bthate@gmail.com>
contact:IRCNET/#dunkbots
distribution:http://plugins.gozerbot.org
license:Public Domain

description


run the udp listen thread


the bot has the capability to listen for udp packets which it will use to /msg a given nick or channel.

  1. udp config

edit the following section in you gozerdata/config

# udp
udp = 1 # set to 1 to enable
udphost = 'localhost'
udpport = 5500
udpallow = ['127.0.0.1', ]
udpallowednicks = ['#gozerbot', 'dunker']
udppassword = 'mekker'
udpseed = "blablablablablaz" # needs to be 16 chars wide

udpallow is set to the ip from which udp packets are accepted .. udpallowednicks are nicks/channels the bot is allowed to send messages to and udppassword is passed along with the message. set udpseed if you want to have your messages encrypted.

  1. limiter

on IRC the bot's /msg to a user/channel are limited to 1 per 3 seconds so the bot will not excessflood on the server. you can use partyudp if you need no delay between sent messages, this will use dcc chat to deliver the message. on jabber bots there is no delay

  1. toudp
# files/toudp.py

use this script to pipeline a programs output to the bot

example: tail -f /var/log/httpd-access.log | ./todup.py

commands


no commands in this plugin