@@ -0,0 +1,705 @@
+import requests%0A%0A%0A__commands__ = '''%0A    hal (frog) %5Bme%5D - shows a random frog tip%0A'''%0A%0A%0Adef plugin(bot):%0A    def get_tips():%0A        result = requests.get('http://frog.tips/api/1/tips/')%0A%0A        if result.status_code != 200:%0A            result.raise_for_status()%0A%0A        return result.json()%5B'tips'%5D%0A%0A    tips = %5B%5D%0A%0A    def get_tip():%0A        if len(tips) == 0:%0A            tips.extend(get_tips())%0A%0A        return tips.pop()%0A%0A    @bot.respond(r'frog(?: me)?')%0A    def frogs(response):%0A        try:%0A            tip = get_tip()%0A            response.send('TIP #%25d: %25s' %25 (tip%5B'number'%5D, tip%5B'tip'%5D,))%0A        except requests.exceptions.RequestException as e:%0A            response.send('ERROR: %25s' %25 (e,))%0A

Add frog me command