File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111"""
1212
1313import json
14- import requests
1514import re
1615
16+ import requests
17+
1718from cloudbot import hook
1819from cloudbot .util import formatting , web
1920
20-
2121# CONSTANTS
2222
2323ITEM_URL = "https://www.newegg.com/Product/Product.aspx?Item={}"
@@ -94,7 +94,7 @@ def newegg_url(match):
9494
9595@hook .command ()
9696def newegg (text ):
97- """newegg <item name> - searches newegg.com for <item name>"""
97+ """<item name> - searches newegg.com for <item name>"""
9898
9999 # form the search request
100100 request = {
@@ -122,7 +122,7 @@ def newegg(text):
122122 r = request .json ()
123123
124124 if r .get ("Description" , False ):
125- return "Newegg Error: {Description} (\x02 {Code}\x02 )" . format (** r )
125+ return "Newegg Error: {Description} (\x02 {Code}\x02 )" .format (** r )
126126
127127 # get the first result
128128 if r ["ProductListItems" ]:
You can’t perform that action at this time.
0 commit comments