We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f33ecb9 commit 06009b3Copy full SHA for 06009b3
1 file changed
plugins/amazon.py
@@ -8,6 +8,11 @@
8
9
SEARCH_URL = "http://www.amazon.com/s/"
10
11
+# Feel free to set this to None or change it to your own ID.
12
+# Or leave it in to support CloudBot, it's up to you!
13
+AFFILIATE_TAG = "cloudbot-20"
14
+
15
16
17
@hook.command("amazon", "az")
18
def amazon(text):
@@ -60,7 +65,11 @@ def amazon(text):
60
65
rating_str = "No Ratings"
61
66
62
67
# generate a short url
63
- url = "http://www.amazon.com/dp/" + asin + "/?tag=cloudbot-20"
68
+ if AFFILIATE_TAG:
69
+ url = "http://www.amazon.com/dp/" + asin + "/?tag=cloudbot-20"
70
+ else:
71
+ url = "http://www.amazon.com/dp/" + asin + "/"
72
64
73
url = web.try_shorten(url)
74
75
tag_str = " - " + ", ".join(tags) if tags else ""
0 commit comments