gelstudios / dankbot Goto Github PK
View Code? Open in Web Editor NEWthe dankest (hip)chat bot in all the land
the dankest (hip)chat bot in all the land
google sometimes returns links with no extension. hipchat does not embed the image in this case
so that future slash commands may be added without re-installing the integration
remove all hardcoded JSON data for defining web hooks
Right now travis CI reports build passing if any test passes.... we need to fix that up
pip install, running, testing, etc
lookup urban dictionary definitions with /define or something
Prevent a person from joining a game multiple times when using /cards join
. Also provide a way to fetch cards if they aren't sent
Specifically, don't let @gelstudios join a game.
imgur truncates gifs over 10mb(?) and returns a still image.
might want to get the next image if we can reliably detect this.
Image search api is severely rate limited. Api can be avoided altogether by sending a GET and parsing the reply with lxml.
curl -X GET -d @$i https://www.google.com/search?hl=en&tbm=isch&q=robot --header "User-Agent:Chrome/51"
maybe something like "/roll 6" or "/roll d20"
Allow someone to do:
/twat @pakalupapito
/twit @pakalupapito
And it'll grab a random tweet from the user @PakaluPapito and return to the room.
2016-04-06T15:07:12.898787+00:00 heroku[router]: at=info method=POST path="/" host=imgur-hipchat-dev.herokuapp.com request_id=b322b7f3-0f00-4cc2-b9de-8419e4c715a0 fwd="52.71.4.137" dyno=web.1 connect=1ms service=197ms status=500 bytes=932
2016-04-06T15:07:12.889380+00:00 app[web.1]: [dankBot] [DEBUG] search="$" resource="imgur" No results found.
2016-04-06T15:07:12.900470+00:00 app[web.1]: Traceback (most recent call last):
2016-04-06T15:07:12.900270+00:00 app[web.1]: [dankBot] [DEBUG] search="$" resource="giphy" No results found.
2016-04-06T15:07:12.900473+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/bottle.py", line 862, in _handle
2016-04-06T15:07:12.900475+00:00 app[web.1]: return route.call(**args)
2016-04-06T15:07:12.900476+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/bottle.py", line 1732, in wrapper
2016-04-06T15:07:12.900476+00:00 app[web.1]: rv = callback(*a, **ka)
2016-04-06T15:07:12.900477+00:00 app[web.1]: File "hipchat.py", line 172, in handle
2016-04-06T15:07:12.900478+00:00 app[web.1]: message = search_all(search=parsed)
2016-04-06T15:07:12.900478+00:00 app[web.1]: File "hipchat.py", line 40, in search_all
2016-04-06T15:07:12.900479+00:00 app[web.1]: message = random.choice(results)
2016-04-06T15:07:12.900480+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/random.py", line 275, in choice
2016-04-06T15:07:12.900481+00:00 app[web.1]: return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty
2016-04-06T15:07:12.900481+00:00 app[web.1]: IndexError: list index out of range
2016-04-06T15:07:12.900930+00:00 app[web.1]: 10.43.199.90 - - [06/Apr/2016 15:07:12] "POST / HTTP/1.1" 500 758
/gank does nothing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.