Esempio n. 1
0
class Config(Config):
    username = config.Field(doc="The username to use when connecting.")
    password = config.Field(doc="The password to use when connecting.")
    imgur_clientid = config.Field(doc="Client ID for use with Imgur.")
    announce = config.Field(
        doc="Whether or not to announce. Set this on a per-channel basis.",
        default=False)
Esempio n. 2
0
class Config(Config):
    chanserv_kick = config.Field(doc="Ask ChanServ to perform the kick.",
                                 default=False)
    chanserv_op = config.Field(
        doc="Ask ChanServ to op with the given command, if not already opped.",
        default=None)
    kick_message = config.Field(doc="Kick message.",
                                default="Watch your language!")
Esempio n. 3
0
class Config(Config):
    remote = config.Field(doc="Remote to pull updates from.",
                          default="origin")
    branch = config.Field(doc="Branch to pull updates from.",
                          default="master")
    post_receive_key = config.Field(doc="Enable the post-receive hook if set. This is the ``key=<key>`` query argument.",
                                    default=None)
    announce = config.Field(doc="Whether or not to announce. Set this on a per-channel basis.", default=False)
Esempio n. 4
0
class Config(Config):
    hosts = config.Field(doc="List of hosts to connect to.",
                         default=[
                             "front1.omegle.com", "front2.omegle.com",
                             "front3.omegle.com", "front4.omegle.com",
                             "front5.omegle.com", "front6.omegle.com",
                             "front7.omegle.com", "front8.omegle.com",
                             "front9.omegle.com"
                         ])
    ignore_prefix = config.Field(
        doc="Ignore all messages starting with a prefix.", default=",")
Esempio n. 5
0
class MoffleConfig(Config):
    class Instance(Config):
        base_url = config.Field(doc="Base URL of the Moffle instance.")
        api_uid = config.Field(doc="UID for API authentication.")
        api_key = config.Field(doc="Key for API authentication.")

    instances = config.Field(doc="Moffle instances keyed by name.",
                             type=config.Mapping(Instance))
Esempio n. 6
0
class Config(Config):
    url = config.Field(doc="The remote cobed to connect to.")
    username = config.Field(doc="The username to use when connecting.")
    password = config.Field(doc="The password to use when connecting.")
    reply = config.Field(doc="Whether or not to generate replies.",
                         default=True)
    prefix = config.Field(doc="Prefix to trigger brain.", default="?")
    random_replyness = config.Field(
        doc="Probability the brain will generate a reply for all messages.",
        default=0.0)
Esempio n. 7
0
class Config(Config):
    api_key = config.Field(doc="Google API key.")
Esempio n. 8
0
class Config(Config):
    username = config.Field(doc="Username for HTTP basic auth.")
    password = config.Field(doc="Password for HTTP basic auth.")
    url = config.Field(doc="URL of the Icecast2 admin page.")
    mount = config.Field(doc="Name of the Icecast2 mountpoint.")
Esempio n. 9
0
class Config(Config):
    appid = config.Field(doc="Wolfram|Alpha application ID.")
Esempio n. 10
0
class Config(Config):
    api_key = config.Field(doc="Google API key.")
    cx = config.Field(doc="Custom search engine ID.")
Esempio n. 11
0
 class Instance(Config):
     base_url = config.Field(doc="Base URL of the Moffle instance.")
     api_uid = config.Field(doc="UID for API authentication.")
     api_key = config.Field(doc="Key for API authentication.")
Esempio n. 12
0
class Config(Config):
    api_key = config.Field(doc="Wordnik API key.")
Esempio n. 13
0
class Config(Config):
    model_file = config.Field(doc="Location where the model file is stored",
                              default="pasta_model.json")
Esempio n. 14
0
class Config(Config):
    port = config.Field(doc="Port to run the web server on.", default=8080)
    address = config.Field(doc="Address to bind the HTTP server to.", default="0.0.0.0")
    title = config.Field(doc="Title for the web site.", default="Kochira")
    motd = config.Field(doc="MOTD for the web site, formatted in reStructuredText.", default="(no message of the day)")
    base_url = config.Field(doc="Base URL for the web server.")
Esempio n. 15
0
class Config(Config):
    index_path = config.Field(doc="Path to the full-text index.",
                              default="quotes")
Esempio n. 16
0
class Config(Config):
    enabled = config.Field(
        doc="Whether or not this service is enabled (false by default).",
        default=False)
    auth_token = config.Field(doc="HipChat authentication token.")
Esempio n. 17
0
class Config(Config):
    app_id = config.Field(doc="Open Exchange Rates App ID.")
Esempio n. 18
0
class Config(Config):
    commands = config.Field(doc="List of commands to run.",
                            type=config.Many(list))
Esempio n. 19
0
class Config(Config):
    from_lang = config.Field(doc="Language to convert from.", default="en_GB")
    to_lang = config.Field(doc="Language to convert to (hint: en_US).",
                           default="en_US")
Esempio n. 20
0
class Config(Config):
    max_size = config.Field(doc="Maximum request size.",
                            default=5 * 1024 * 1024)
Esempio n. 21
0
class Config(Config):
    api_key = config.Field(doc="Weather Underground API key.")
Esempio n. 22
0
class Config(Config):
    brain_file = config.Field(doc="Location to store the brain in.",
                              default="brain.db")
Esempio n. 23
0
class Config(Config):
    timeout = config.Field(
        doc="Timeout for granting another user karma, in seconds.",
        default=30 * 60)
Esempio n. 24
0
class Config(Config):
    log_dir = config.Field(doc="Path to the log directory.", default="logs")
Esempio n. 25
0
class Config(Config):
    api_key = config.Field(doc="Last.fm API key.")