예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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"
예제 #4
0
 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"
예제 #5
0
 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/"
예제 #6
0
 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"
예제 #7
0
 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"
예제 #8
0
 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/"
예제 #9
0
 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/"
예제 #10
0
 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"
예제 #11
0
 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/"
예제 #12
0
 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"
예제 #13
0
 def slackbot(self, arg):
     """Goes to slackbot configuration page;
     possible values 'strappo', 'xoms', 'tinyapp'"""
     return "https://%s.slack.com/customize/slackbot" % qp(arg)
예제 #14
0
 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"
예제 #15
0
 def your_command_here(self, arg):
     """this is where a description of your command goes"""
     return "http://www.example.com/?" % qp(arg)
예제 #16
0
 def quora(self, arg):
     """Search with quora"""
     return "http://www.quora.com/search?q=%s" % qp(arg)
예제 #17
0
 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"
예제 #18
0
 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)
예제 #19
0
 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"
예제 #20
0
 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/"
예제 #21
0
 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/"
예제 #22
0
 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"
예제 #23
0
 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'
예제 #24
0
 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"
예제 #25
0
 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/"
예제 #26
0
 def your_command_here(self, arg):
     """this is where a description of your command goes"""
     return "http://www.example.com/?" % qp(arg)
예제 #27
0
 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/"
예제 #28
0
 def npm(self, arg):
     """Searches npm for modules with the given name"""
     return "https://npmjs.org/search?q=" + qp(arg)
예제 #29
0
 def t(self, arg):
     """Search torrents"""
     # return "https://kickass.unblocked.la/usearch/%s/" % qp(arg)
     return "http://extratorrent.cc/search/?search=%s" % qp(arg)
예제 #30
0
 def g(self, arg):
     """Search with google"""
     return "http://www.google.com/search?q=%s" % qp(arg)
예제 #31
0
 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/"
예제 #32
0
 def nct(self, arg):
     """search with NhacCuaTui"""
     return "http://www.nhaccuatui.com/tim-kiem?q=%s" % qp(arg)
예제 #33
0
 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/"
예제 #34
0
 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"
예제 #35
0
 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/"
예제 #36
0
 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"
예제 #37
0
 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/"
예제 #38
0
 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"
예제 #39
0
 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"
예제 #40
0
 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/"
예제 #41
0
 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"
예제 #42
0
 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/"
예제 #43
0
 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/"
예제 #44
0
 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/"
예제 #45
0
 def aim(self, arg):
     """use AOL Instant Messenger to IM a given screenname"""
     return "aim:goim?screenname=%s" % qp(arg)
예제 #46
0
 def aim(self, arg):
     """use AOL Instant Messenger to IM a given screenname"""
     return "aim:goim?screenname=%s" % qp(arg)
예제 #47
0
 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/"
예제 #48
0
 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/"
예제 #49
0
 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"
예제 #50
0
 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/"
예제 #51
0
 def id(self, arg):
     """Search idioms"""
     if arg:
         return "http://idios.thefreedictionary.com/%s" % qp(arg)
     else:
         return "http://idios.thefreedictionary.com/"