<gh_stars>0
import requests
from twisted.python import log

import delbert.plugin


class Startup(delbert.plugin.Plugin):
    def __init__(self, config={}):
        super(Startup, self).__init__('startup')
        self._config = config

    def query_startup(self):
        """
        Query the startup generator.

        @return  - a pretty sweet business idea bro!
        """
        try:
            html = requests.get(
                'http://itsthisforthat.com/api.php?text',
                verify=False)
        except requests.exceptions.RequestException, e:
            log.err(str(e))
            return

        return html.content.lower().capitalize()

    @delbert.plugin.irc_command('generate startup ideas')
    def startup(self, user, channel, args):
        msg = self.query_startup()
        self._proto.send_msg(self.send_to(channel, user), msg)

import requests
from twisted.python import log

import delbert.plugin


class Startup(delbert.plugin.Plugin):
    def __init__(self, config={}):
        super(Startup, self).__init__('startup')
        self._config = config

    def query_startup(self):
        """
        Query the startup generator.

        @return  - a pretty sweet business idea bro!
        """
        try:
            html = requests.get(
                'http://itsthisforthat.com/api.php?text',
                verify=False)
        except requests.exceptions.RequestException, e:
            log.err(str(e))
            return

        return html.content.lower().capitalize()

    @delbert.plugin.irc_command('generate startup ideas')
    def startup(self, user, channel, args):
        msg = self.query_startup()
        self._proto.send_msg(self.send_to(channel, user), msg)
Query the startup generator.          @return  - a pretty sweet business idea bro!