Brian S. Stephan
6136127c5f
this is the first step in trying to get the bot to support multiple servers with different channels, countdown triggers, and so on this also ends up affecting some configuration around: * dispatch * markov * admin privmsg form
16 lines
365 B
Python
16 lines
365 B
Python
"""Forms for doing ircbot stuff."""
|
|
import logging
|
|
|
|
from django.forms import CharField, Form, IntegerField, Textarea
|
|
|
|
log = logging.getLogger('ircbot.forms')
|
|
|
|
|
|
class PrivmsgForm(Form):
|
|
"""Accept a privmsg to send to the ircbot."""
|
|
|
|
target = CharField()
|
|
message = CharField(widget=Textarea)
|
|
xmlrpc_host = CharField()
|
|
xmlrpc_port = IntegerField()
|