diff --git a/assets/acceptable.png b/assets/acceptable.png new file mode 100644 index 0000000..5ff69ec Binary files /dev/null and b/assets/acceptable.png differ diff --git a/assets/allthethings.png b/assets/allthethings.png new file mode 100644 index 0000000..6243a18 Binary files /dev/null and b/assets/allthethings.png differ diff --git a/assets/angrycat.png b/assets/angrycat.png new file mode 100644 index 0000000..f6dbb8e Binary files /dev/null and b/assets/angrycat.png differ diff --git a/assets/areyoukiddingme.png b/assets/areyoukiddingme.png new file mode 100644 index 0000000..172612c Binary files /dev/null and b/assets/areyoukiddingme.png differ diff --git a/assets/argh.png b/assets/argh.png new file mode 100644 index 0000000..286927b Binary files /dev/null and b/assets/argh.png differ diff --git a/assets/atom.png b/assets/atom.png new file mode 100644 index 0000000..d17389d Binary files /dev/null and b/assets/atom.png differ diff --git a/assets/awesome.png b/assets/awesome.png new file mode 100644 index 0000000..fa671ef Binary files /dev/null and b/assets/awesome.png differ diff --git a/assets/awthanks.png b/assets/awthanks.png new file mode 100644 index 0000000..3f9d0d4 Binary files /dev/null and b/assets/awthanks.png differ diff --git a/assets/aww.png b/assets/aww.png new file mode 100644 index 0000000..406faf5 Binary files /dev/null and b/assets/aww.png differ diff --git a/assets/awyeah.png b/assets/awyeah.png new file mode 100644 index 0000000..7e96e57 Binary files /dev/null and b/assets/awyeah.png differ diff --git a/assets/badass.png b/assets/badass.png new file mode 100644 index 0000000..03b6d86 Binary files /dev/null and b/assets/badass.png differ diff --git a/assets/beer.png b/assets/beer.png new file mode 100644 index 0000000..d55f161 Binary files /dev/null and b/assets/beer.png differ diff --git a/assets/build-assets.py b/assets/build-assets.py index fb612b7..e13ca6c 100644 --- a/assets/build-assets.py +++ b/assets/build-assets.py @@ -1,11 +1,8 @@ -import json, requests +import json from glob import glob -from lxml import html -from collections import namedtuple -CUSTOM_ASSETS_URL="https://raw.githubusercontent.com/RealOrangeOne/hipchat-emoticons-for-all/master/assets/" +ASSETS_URL="https://raw.githubusercontent.com/RealOrangeOne/hipchat-emoticons-for-all/master/assets/" -Emoticon = namedtuple('Emoticon', ['ident', 'url']) def get_icon_name(path): return get_filename(path).replace('.png', '').replace('.gif', '') @@ -14,23 +11,11 @@ def get_filename(path): return path.replace('assets/', '') -page = requests.get("https://www.hipchat.com/emoticons") -html_tree = html.fromstring(page.text) -emoticon_paths = html_tree.xpath("//div[@class='emoticon-block']/img/@src") -emoticon_names = html_tree.xpath("//div[@class='emoticon-block']/div/text()") - - -emoticons = [] -for i in range(len(emoticon_names)-1): - emoticons.append(Emoticon(emoticon_names[i][1:-1], emoticon_paths[i])) - -images = [] -for emoticon in emoticons: - images.append({emoticon.ident: emoticon.url}) - files = glob('assets/*.png') + glob('assets/*.gif') +images = [] + for filename in files: - images.append({get_icon_name(filename): CUSTOM_ASSETS_URL + get_filename(filename)}) + images.append({get_icon_name(filename): ASSETS_URL + get_filename(filename)}) image_decoder = {"images":images} diff --git a/assets/bullshirt.png b/assets/bullshirt.png new file mode 100644 index 0000000..520de64 Binary files /dev/null and b/assets/bullshirt.png differ diff --git a/assets/challengeaccepted.png b/assets/challengeaccepted.png new file mode 100644 index 0000000..b23fdc3 Binary files /dev/null and b/assets/challengeaccepted.png differ diff --git a/assets/chompy.gif b/assets/chompy.gif new file mode 100644 index 0000000..f979bc5 Binary files /dev/null and b/assets/chompy.gif differ diff --git a/assets/content.png b/assets/content.png new file mode 100644 index 0000000..f3630e4 Binary files /dev/null and b/assets/content.png differ diff --git a/assets/doge.png b/assets/doge.png new file mode 100644 index 0000000..6ce3e4c Binary files /dev/null and b/assets/doge.png differ diff --git a/assets/donotwant.gif b/assets/donotwant.gif new file mode 100644 index 0000000..552d0ca Binary files /dev/null and b/assets/donotwant.gif differ diff --git a/assets/drool.png b/assets/drool.png new file mode 100644 index 0000000..7809759 Binary files /dev/null and b/assets/drool.png differ diff --git a/assets/evilburns.png b/assets/evilburns.png new file mode 100644 index 0000000..53ade86 Binary files /dev/null and b/assets/evilburns.png differ diff --git a/assets/facepalm.png b/assets/facepalm.png new file mode 100644 index 0000000..eca7f0a Binary files /dev/null and b/assets/facepalm.png differ diff --git a/assets/greenbeer.png b/assets/greenbeer.png new file mode 100644 index 0000000..321d1da Binary files /dev/null and b/assets/greenbeer.png differ diff --git a/assets/herp.png b/assets/herp.png new file mode 100644 index 0000000..42f09fb Binary files /dev/null and b/assets/herp.png differ diff --git a/assets/hubot.png b/assets/hubot.png new file mode 100644 index 0000000..1c1d78a Binary files /dev/null and b/assets/hubot.png differ diff --git a/assets/iseewhatyoudidthere.png b/assets/iseewhatyoudidthere.png new file mode 100644 index 0000000..b3b6b8a Binary files /dev/null and b/assets/iseewhatyoudidthere.png differ diff --git a/assets/jackie.png b/assets/jackie.png new file mode 100644 index 0000000..6fe7924 Binary files /dev/null and b/assets/jackie.png differ diff --git a/assets/llama.png b/assets/llama.png new file mode 100644 index 0000000..6358097 Binary files /dev/null and b/assets/llama.png differ diff --git a/assets/lol.png b/assets/lol.png new file mode 100644 index 0000000..6041cfc Binary files /dev/null and b/assets/lol.png differ diff --git a/assets/metal.png b/assets/metal.png new file mode 100644 index 0000000..b751fb1 Binary files /dev/null and b/assets/metal.png differ diff --git a/assets/mindblown.gif b/assets/mindblown.gif new file mode 100644 index 0000000..48b2d85 Binary files /dev/null and b/assets/mindblown.gif differ diff --git a/assets/mygoditsfullofstars.png b/assets/mygoditsfullofstars.png new file mode 100644 index 0000000..f97bd49 Binary files /dev/null and b/assets/mygoditsfullofstars.png differ diff --git a/assets/nice.png b/assets/nice.png new file mode 100644 index 0000000..99388b4 Binary files /dev/null and b/assets/nice.png differ diff --git a/assets/noot.png b/assets/noot.png new file mode 100644 index 0000000..024c89f Binary files /dev/null and b/assets/noot.png differ diff --git a/assets/notbad.png b/assets/notbad.png new file mode 100644 index 0000000..6cd7545 Binary files /dev/null and b/assets/notbad.png differ diff --git a/assets/nothingtodohere.png b/assets/nothingtodohere.png new file mode 100644 index 0000000..9764304 Binary files /dev/null and b/assets/nothingtodohere.png differ diff --git a/assets/ohcrap.png b/assets/ohcrap.png new file mode 100644 index 0000000..27eb4bc Binary files /dev/null and b/assets/ohcrap.png differ diff --git a/assets/ohgodwhy.png b/assets/ohgodwhy.png new file mode 100644 index 0000000..504b169 Binary files /dev/null and b/assets/ohgodwhy.png differ diff --git a/assets/ohmy.png b/assets/ohmy.png new file mode 100644 index 0000000..faf27a0 Binary files /dev/null and b/assets/ohmy.png differ diff --git a/assets/okay.png b/assets/okay.png new file mode 100644 index 0000000..6f83c59 Binary files /dev/null and b/assets/okay.png differ diff --git a/assets/poo.png b/assets/poo.png new file mode 100644 index 0000000..f19050b Binary files /dev/null and b/assets/poo.png differ diff --git a/assets/ragegirl.png b/assets/ragegirl.png new file mode 100644 index 0000000..441d66b Binary files /dev/null and b/assets/ragegirl.png differ diff --git a/assets/rageguy.png b/assets/rageguy.png new file mode 100644 index 0000000..3daeedb Binary files /dev/null and b/assets/rageguy.png differ diff --git a/assets/sadpanda.png b/assets/sadpanda.png new file mode 100644 index 0000000..8c71325 Binary files /dev/null and b/assets/sadpanda.png differ diff --git a/assets/sadtroll.png b/assets/sadtroll.png new file mode 100644 index 0000000..e123fc9 Binary files /dev/null and b/assets/sadtroll.png differ diff --git a/assets/shipit.png b/assets/shipit.png new file mode 100644 index 0000000..fdc6f0a Binary files /dev/null and b/assets/shipit.png differ diff --git a/assets/shrinkray.png b/assets/shrinkray.png new file mode 100644 index 0000000..80d937a Binary files /dev/null and b/assets/shrinkray.png differ diff --git a/assets/smug.gif b/assets/smug.gif new file mode 100644 index 0000000..c806130 Binary files /dev/null and b/assets/smug.gif differ diff --git a/assets/stare.png b/assets/stare.png new file mode 100644 index 0000000..a0641d0 Binary files /dev/null and b/assets/stare.png differ diff --git a/assets/sweetjesus.png b/assets/sweetjesus.png new file mode 100644 index 0000000..fc5a91f Binary files /dev/null and b/assets/sweetjesus.png differ diff --git a/assets/troll.png b/assets/troll.png new file mode 100644 index 0000000..c22f34a Binary files /dev/null and b/assets/troll.png differ diff --git a/assets/truestory.png b/assets/truestory.png new file mode 100644 index 0000000..465b272 Binary files /dev/null and b/assets/truestory.png differ diff --git a/assets/unacceptable.png b/assets/unacceptable.png new file mode 100644 index 0000000..b5aaf9b Binary files /dev/null and b/assets/unacceptable.png differ diff --git a/assets/waiting.gif b/assets/waiting.gif new file mode 100644 index 0000000..4a983b8 Binary files /dev/null and b/assets/waiting.gif differ diff --git a/assets/wat.png b/assets/wat.png new file mode 100644 index 0000000..500e1d8 Binary files /dev/null and b/assets/wat.png differ diff --git a/assets/wooow.gif b/assets/wooow.gif new file mode 100644 index 0000000..654048e Binary files /dev/null and b/assets/wooow.gif differ diff --git a/assets/yey.png b/assets/yey.png new file mode 100644 index 0000000..65bdf64 Binary files /dev/null and b/assets/yey.png differ