def fbappabout(self, arg): """go to the about page for an app given a canvas name, app id, or api key""" if is_int(arg): return "http://www.facebook.com/apps/application.php?id=%s" % qp(arg) else: try: # check to see if this is a valid API key if len(arg) == 32: int(arg, 16) return "http://www.facebook.com/apps/application.php?api_key=%s" % qp(arg) except ValueError: pass return "http://www.facebook.com/app_about.php?app_name=%s" % qp(arg)
def fbappabout(self, arg): """go to the about page for an app given a canvas name, app id, or api key""" if is_int(arg): return "http://www.facebook.com/apps/application.php?id=%s" % qp( arg) else: try: # check to see if this is a valid API key if len(arg) == 32: int(arg, 16) return "http://www.facebook.com/apps/application.php?api_key=%s" % qp( arg) except ValueError: pass return "http://www.facebook.com/app_about.php?app_name=%s" % qp( arg)
def jira(self, arg): """go to description and details of a JIRA ticket""" if arg: return "https://jira.tiki.com.vn/projects/PS/queues/custom/27/%s" % qp( arg) else: return "https://jira.tiki.com.vn/projects/PS/queues/custom/27"
def ps(self, arg): """go to PS service desk""" if arg: return "https://jira.tiki.com.vn/projects/PS/queues/custom/27/PS-%s" % qp( arg) else: return "https://jira.tiki.com.vn/servicedesk/customer/portal/5"
def docs(self, arg): """go to Tiki Docs (Confluence) or search on Tiki Docs""" if arg: return "https://docs.tiki.com.vn/dosearchsite.action?queryString=%s" % qp( arg) else: return "https://docs.tiki.com.vn/"
def debug(self, arg): """go to debugger tool with a SKU/productID""" if arg: return "http://backend.tiki.vn/tool/product_debugger?q=%s" % qp( arg) else: return "http://backend.tiki.vn/tool/product_debugger"
def couponr(self, arg): """reset coupon of a cancelled order""" if arg: return "http://backend.tiki.vn/tool/product_support?order-code=%s" % qp( arg) else: return "http://backend.tiki.vn/tool/product_support"
def wikinvest(self, arg): """Searches Wikinvest or goes there""" if arg: return "http://www.wikinvest.com/Special/Search?search=%s" % qp( arg) else: return "http://www.wikinvest.com/"
def ya(self, arg): """searches Yahoo! Answers for an answer to your question""" if arg: return "http://answers.yahoo.com/search/search_result?p=%s" % qp( arg) else: return "http://answers.yahoo.com/"
def jr(self, arg): """Go or search jira.iontrading.com""" if arg and arg == 'qst': return "https://jira.iontrading.com/secure/RapidBoard.jspa?rapidView=620" if arg: return "https://jira.iontrading.com/browse/%s" % qp(arg) else: return "https://jira.iontrading.com"
def co(self, arg): """Go or search confluence.iontrading.com""" if arg: return "https://confluence.iontrading.com/dosearchsite.action?spaceSearch=false&queryString=%s" % qp(arg) else: return "https://confluence.iontrading.com/"
def pck(self, arg): if arg: return "http://erp.tiki.vn/#id=%s&view_type=form&model=stock.picking&action=318" % qp( arg) else: return "http://erp.tiki.vn/#page=0&limit=80&view_type=list&model=stock.picking&menu_id=274&action=318"
def slackbot(self, arg): """Goes to slackbot configuration page; possible values 'strappo', 'xoms', 'tinyapp'""" return "https://%s.slack.com/customize/slackbot" % qp(arg)
def nxa(self, arg): """Go or search axton's nexus""" if arg: return "http://axton.fssnet.internal:8081/#nexus-search;quick~%s" % qp(arg) else: return "http://axton.fssnet.internal:8081/#welcome"
def your_command_here(self, arg): """this is where a description of your command goes""" return "http://www.example.com/?" % qp(arg)
def quora(self, arg): """Search with quora""" return "http://www.quora.com/search?q=%s" % qp(arg)
def dr(self, arg): """Goes to or searches on Google drive""" if arg: return "https://drive.google.com/drive/search?q=%s" % qp(arg) else: return "https://drive.google.com/drive"
def ios(self, arg): """Searches for Apple's iOS documentation on the given term""" apple_dev_url = "https://developer.apple.com/library/ios" return "https://www.google.com/#q=" + qp(arg + " site:" + apple_dev_url)
def cnint(self, arg): """Goes or search int-connection.iontrading.com""" if arg: return "https://int-connection.iontrading.com/#/search/people?query=%s" % qp(arg) else: return "https://int-connection.iontrading.com"
def domain(self, arg): """Search www.facebook.com or go there""" if arg: return "https://www.dotster.com/register/domains/?dom_lookup=%s" % qp(arg) else: return "https://www.dotster.com/"
def cnl(self, arg): """Go or search pimatlan01.iontrading.com""" if arg: return "http://pimatlanw01.iontrading.com:9001/#/search/people?query=%s" % qp(arg) else: return "http://pimatlanw01.iontrading.com:9001/"
def cb(self, arg): """Go to Crunchbase, or search for a specific organization""" if arg: return "https://www.crunchbase.com/organization/%s" % qp(arg) else: return "https://www.crunchbase.com"
def say(self, arg): """Pronounce an English word""" if arg: return 'http://www.howjsay.com/index.php?word=%s' % qp(arg) else: return 'http://www.howjsay.com/index.php'
def ym(self, arg): """Goes or search yammer""" if arg: return "https://www.yammer.com/iontrading.com/#/Threads/Search?search=%s" % qp(arg) else: return "https://www.yammer.com/iontrading.com/#/home"
def ytd(self, arg): """Searches YouTube by date added instead of by relevance, or goes to youtube.com""" if arg: return "http://www.youtube.com/results?search_query=%s&search_sort=video_date_uploaded" % qp( arg) else: return "http://www.youtube.com/"
def wa(self, arg): """Searches Wolfram Alpha or goes there""" if arg: return "http://www.wolframalpha.com/input/?i=%s" % qp(arg) else: return "http://www.wolframalpha.com/"
def npm(self, arg): """Searches npm for modules with the given name""" return "https://npmjs.org/search?q=" + qp(arg)
def t(self, arg): """Search torrents""" # return "https://kickass.unblocked.la/usearch/%s/" % qp(arg) return "http://extratorrent.cc/search/?search=%s" % qp(arg)
def g(self, arg): """Search with google""" return "http://www.google.com/search?q=%s" % qp(arg)
def fb(self, arg): """search www.facebook.com or go there""" if arg: return "http://www.facebook.com/s.php?q=%s&init=q" % qp(arg) else: return "http://www.facebook.com/"
def nct(self, arg): """search with NhacCuaTui""" return "http://www.nhaccuatui.com/tim-kiem?q=%s" % qp(arg)
def wikinvest(self, arg): """Searches Wikinvest or goes there""" if arg: return "http://www.wikinvest.com/Special/Search?search=%s" % qp(arg) else: return "http://www.wikinvest.com/"
def ops(self, arg): """go to OPS ticket""" if arg: return "https://jira.tiki.com.vn/browse/OPS-%s" % qp(arg) else: return "https://jira.tiki.com.vn/secure/RapidBoard.jspa?rapidView=30&projectKey=OPS"
def fbpbz(self, arg): """goes to Facebook Platform Bugzilla bugs""" if arg: return "http://bugs.developers.facebook.com/buglist.cgi?quicksearch=%s" % qp(arg) else: # if no arg, go to the main page of bugzilla return "http://bugs.developers.facebook.com/"
def nxu(self, arg): """Go or search usnexus01""" if arg: return "http://usnexus01.iontrading.com:8081/nexus/#nexus-search;quick~%s" % qp(arg) else: return "http://usnexus01.iontrading.com:8081/nexus/#welcome"
def jrtpttest(self, arg): """Go or search https://portal.tpt.com/devjira2""" if arg: return "https://portal.tpt.com/devjira2/browse/%s" % qp(arg) else: return "https://portal.tpt.com/devjira2"
def jrtest(self, arg): """Go or search is-jirasupport-test.iontrading.com""" if arg: return "https://is-jirasupport-test.iontrading.com/browse/%s" % qp(arg) else: return "https://is-jirasupport-test.iontrading.com"
def rma(self, arg): if arg: return "http://admin.tiki.vn/index.php/rmaadmin/adminhtml_rma/edit/id/%s" % qp( arg) else: return "http://admin.tiki.vn/index.php/rmaadmin/adminhtml_rma/edit/id/"
def tv(self, arg): """Goes to or search tvshowtime""" if arg: return "https://www.tvshowtime.com/search?q=%s" % qp(arg) else: return "https://www.tvshowtime.com"
def fbpbz(self, arg): """goes to Facebook Platform Bugzilla bugs""" if arg: return "http://bugs.developers.facebook.com/buglist.cgi?quicksearch=%s" % qp( arg) else: # if no arg, go to the main page of bugzilla return "http://bugs.developers.facebook.com/"
def ya(self, arg): """searches Yahoo! Answers for an answer to your question""" if arg: return "http://answers.yahoo.com/search/search_result?p=%s" % qp(arg) else: return "http://answers.yahoo.com/"
def aim(self, arg): """use AOL Instant Messenger to IM a given screenname""" return "aim:goim?screenname=%s" % qp(arg)
def yt(self, arg): """Searches YouTube or goes to it""" if arg: return "http://www.youtube.com/results?search_query=%s&search_type=&aq=-1&oq=" % qp(arg) else: return "http://www.youtube.com/"
def yt(self, arg): """Searches YouTube or goes to it""" if arg: return "http://www.youtube.com/results?search_query=%s&search_type=&aq=-1&oq=" % qp( arg) else: return "http://www.youtube.com/"
def im(self, arg): """Searches Google Images or goes there""" if arg: return "https://www.google.com/search?site=imghp&tbm=isch&q=%s" % qp(arg) else: return "https://www.google.com/search?site=imghp&tbm=isch"
def ytd(self, arg): """Searches YouTube by date added instead of by relevance, or goes to youtube.com""" if arg: return "http://www.youtube.com/results?search_query=%s&search_sort=video_date_uploaded" % qp(arg) else: return "http://www.youtube.com/"
def id(self, arg): """Search idioms""" if arg: return "http://idios.thefreedictionary.com/%s" % qp(arg) else: return "http://idios.thefreedictionary.com/"