this runs with a basic model and even more basic test, but I'm not committing those yet as I'm still playing with the model (lest I make 30 revisions right off the bat) Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
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()
|