This commit is contained in:
Luke Rogers 2013-12-02 23:04:36 +13:00
parent 97e7741434
commit 4236b7bc29
1 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,8 @@ from util import hook, http, web
import time
import random
## CONSTANTS
base_url = "http://api.bukget.org/3/"
search_url = base_url + "search/plugin_name/like/{}"
@ -23,7 +25,7 @@ class BukgetError(Exception):
return self.text
## API FUNCTIONS
## DATA FUNCTIONS
def plugin_search(term):
""" searches for a plugin with the bukget API and returns the slug """
@ -102,6 +104,8 @@ def format_output(data):
return line_a, line_b
## HOOK FUNCTIONS
@hook.command('plugin')
@hook.command
def bukkitplugin(inp, reply=None, message=None):