2015-06-13 13:07:52 -05:00
|
|
|
"""Forms for doing ircbot stuff."""
|
|
|
|
import logging
|
|
|
|
|
2021-04-25 08:59:01 -05:00
|
|
|
from django.forms import CharField, Form, IntegerField, Textarea
|
2015-06-13 13:07:52 -05:00
|
|
|
|
2021-04-25 08:59:01 -05:00
|
|
|
log = logging.getLogger('ircbot.forms')
|
2015-06-13 13:07:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
class PrivmsgForm(Form):
|
|
|
|
"""Accept a privmsg to send to the ircbot."""
|
|
|
|
|
|
|
|
target = CharField()
|
2017-02-12 11:39:40 -06:00
|
|
|
message = CharField(widget=Textarea)
|
2021-04-25 08:59:01 -05:00
|
|
|
xmlrpc_host = CharField()
|
|
|
|
xmlrpc_port = IntegerField()
|