drbotzo-idlerpg/tests/test_project/ircbot/forms.py
Brian S. Stephan 9540c98d18
add more development tools and start the test scaffolding
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>
2024-05-05 23:03:23 -05:00

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()