Commit Graph

43 Commits

Author SHA1 Message Date
Christine Dodrill c0d4330383 failed hopes 2015-11-15 09:13:12 -08:00
Christine Dodrill 919cc0f505 Update to python 3 2015-11-15 08:36:35 -08:00
Ryan Hitchman 200a2158bb wikipedia: escape URLs properly 2014-05-19 09:50:05 -07:00
Parker Smith d878779d50 Modified http util to support additional headers
Inverted some header logic

Removed user_agent and referer from http, in favor of headers dict

http: formatting

http: Fixed missing part in conditional
2014-01-20 09:15:29 -05:00
Ryan Hitchman cb8c437772 flake8 + autopep8 (whitespace fixes) 2014-01-14 13:12:37 -08:00
Ben a1c44336dd New, simplified twitter plugin with support for API 1.1. 2013-06-26 11:35:39 -07:00
Ryan Hitchman a29dffbfb7 refactor apikey retrieval, fix lastfm with empty input 2013-01-27 16:40:31 -06:00
Lasse Vang Gravesen 68e5535ca4 Added referer field to http.py, as to make it possible to use a referer. I
don't know if this was possible before, and if it was it should be removed
and the appropriate changes should be made without the http.py change.

Stock plugin output was changed so the percent change has an actual
percentage sign after it.

UrbanDictionary plugin was changed to use a referer because it didn't work
without it.
2012-06-03 01:08:30 +02:00
Ryan Hitchman ce67812827 google: unescape titles. drama: set api endpoints to new domain. 2011-05-30 05:18:01 -06:00
Ryan Hitchman b82372a76c make default user-agent include git revision 2011-03-29 08:48:44 -05:00
Ryan Hitchman bc05053d8a docstring snopes, don't respond to "<botnick> <command>" (can still do "<botnick>: <command>", PEP8 2010-11-11 23:21:27 -06:00
Rob Dennis 8372502ea5 fix for mutable default argument in utility function 2010-09-06 11:39:13 +08:00
Ryan Hitchman c2a607198c PEP8 2010-08-29 22:35:27 -05:00
Ryan Hitchman f3f4dac7e9 make http able to handle cookies, somethingawful.py: give thread titles for SA forums links 2010-08-25 15:39:45 -05:00
Ryan Hitchman b5be0217a4 make .dict handle unicode properly 2010-07-24 17:38:28 -06:00
melonhead 93f626c482 Removed debug print lines from URL normalizer 2010-07-14 16:48:18 -04:00
melonhead 61c42e7d8a urlhistory: main regex no longer matches 'http://' or 'www.'
urlhistory: added URL normalization for Amazon, Waffleimages, and Youtube
2010-07-14 16:45:26 -04:00
Ryan Hitchman 6452c1169c disable !command, enable fuzzy command matching, make help automatic, add disabled_command (for fuzzy command match disabling), misc bugs 2010-05-07 17:16:44 -06:00
Ryan Hitchman 1005537e63 .dict/.define (courtesy GhettoWizard), move more stuff into the http library 2010-04-25 15:39:31 -06:00
Ryan Hitchman f61895fdc3 pep8 2010-04-22 21:50:56 -06:00
Ryan Hitchman e55774b770 refactor http (and html, xml, json) handling into util/http.py (not done for dotnetpad), fix mtg, remove dict & goonsay 2010-04-22 21:47:41 -06:00
Ryan Hitchman 2a11825779 PEP8 compliance, reduce munging on tagged names 2010-03-27 02:42:27 -06:00
Ryan Hitchman 7888ce1314 rename hook.thread to hook.singlethread, make singlethread plugins cache db connections 2010-03-13 07:24:19 -07:00
Ryan Hitchman 627b83039c clean validate, pep8, remove CRs 2010-03-12 23:16:06 -07:00
Ryan Hitchman 24a837c606 add hook.regex -- regex search against private messages 2010-03-11 17:19:36 -07:00
Ryan Hitchman 4e0da10b37 remove some useless imports 2010-03-11 16:39:28 -07:00
Ryan Hitchman 1e6c08fb30 rewrite hooking and dispatcher 2010-03-11 16:34:54 -07:00
Ryan Hitchman 997ad976e8 remove beautifulsoup -- we use lxml 2010-03-03 20:31:24 -07:00
Ryan Hitchman ee8d51dc62 remove cruft from urlnorm 2010-03-03 20:25:13 -07:00
melonhead 16aceb6f26 Added encyclopedia dramatica .drama command 2010-03-03 17:55:57 +00:00
Ryan Hitchman 253881f4b4 PEP8 compliance + clean dotnetpad 2010-02-28 19:32:41 -07:00
Ryan Hitchman 40bb91bb88 make config file use json now, remove pyyaml and various other cruft 2010-02-22 20:32:09 -07:00
Ryan Hitchman 3c4edb54c2 make urlhistory give more information about when urls were linked 2010-02-05 19:54:28 -07:00
Ryan Hitchman 1dd86babc2 change calling convention 2010-02-01 21:42:34 -07:00
Ryan Hitchman 9eb5b236a6 rewrite tell, simplify db access in quote, seen, urlhistory. fix wolframalpha for the last time 2010-02-01 00:29:50 -07:00
melonhead bb709a74bf Added URL normalization to urlhistory module to allow better detection of duplicates
Added configurable ignored URLs to urlhistory module
2010-01-18 15:07:06 -05:00
Ryan Hitchman 5f1ac6254e better fix for log.py mishandling certain strings 2009-11-18 19:45:57 -07:00
Ryan Hitchman 985f7c5d51 logging now properly ordered 2009-11-18 17:39:27 -07:00
Ryan Hitchman 3cab3993dc update PyYAML to 3.09 2009-11-17 16:13:01 -07:00
Ryan Hitchman 038793c226 move irc into core/, fix reload plugin display 2009-10-16 19:36:02 -06:00
Ryan Hitchman e6360187b1 oops 2009-07-08 11:30:55 -06:00
Ryan Hitchman 3cdf0d2c83 pep8 compliance 2009-07-08 11:28:15 -06:00
Ryan Hitchman 40be3038ab restructure utilities, harmonize imports, add doc on other bots 2009-07-08 11:04:30 -06:00