Commit Graph

477 Commits

Author SHA1 Message Date
Ryan Hitchman bb3f418aa3 tag: fix `.tag <tag>` searching 2013-12-20 15:38:08 -08:00
spathi-wa 87a11881a4 plugins/twitter: added hook.regex for twitter URLs
Also minor changes in output formatting
2013-12-18 12:36:20 -08:00
Ryan Hitchman e866c432c8 tag: allow boolean intersection searches 2013-11-19 16:27:58 -08:00
Ryan Hitchman cb514dfede tvdb: don't download zip files, just use the xml endpoint 2013-11-19 16:27:58 -08:00
Jacob Stultz 80ce43e0c5 Calculate change percentage correctly
Measuring percent change based on the current price instead of the
original price is silly; instead use change / old price
2013-11-07 14:42:31 -08:00
Ryan Hitchman e769bad2b7 stock.py: change to use yahoo API 2013-11-06 09:54:38 -08:00
Ryan Hitchman 248b220d9b somethingawful: use api_key hook instead of bot.config 2013-10-31 10:44:27 -07:00
Ryan Hitchman 0796167813 plugins/twitter: unescape html entities 2013-10-07 14:41:38 -07:00
Ryan Hitchman a97715d5c0 plugins/twitter: pick a random search result for hashtags 2013-09-20 17:35:42 -07:00
Ryan Hitchman 4fd611da09 Merge pull request #84 from axisofentropy/master
Re-added support for twitter hashtag searches.
2013-09-20 17:31:58 -07:00
Ryan Hitchman 771118f0c7 Merge pull request #83 from Atheuz/development
tvdb.py: When there's a next episode date, provide a time until in the return string.
2013-09-20 14:30:39 -07:00
Ryan Hitchman 52b90119a6 plugins/google: use custom search API instead of (deprecated) AJAX api 2013-09-20 14:04:58 -07:00
Ryan Hitchman 80548ca8f9 plugins/seen: don't use LIKE (SQL wildcards confuse people), compare lowercase nicks instead 2013-09-20 13:13:36 -07:00
Ryan Hitchman e0518f6c2a plugins/tag: if there are too many tags to display, remove some of them 2013-09-20 13:01:54 -07:00
Adam Vollrath 93dc115048 Re-added support for twitter hashtag searches. 2013-08-17 00:35:00 -04:00
Lasse Vang Gravesen 8c47b0c2e1 Renamed first_aired variable to episode_air_date in tvdb plugin. 2013-08-10 02:27:06 +02:00
Lasse Vang Gravesen d9b9558776 tvdb.py: When there's a next episode date, provide a time until in the return string. 2013-08-10 02:18:24 +02:00
Ryan Hitchman 310863a2b9 weather: store input location in db, not fragment of location. fixes #82 2013-08-07 20:29:02 -07:00
Bryan Koroleski bc84e9e2d9 Re-added support for getting the nth tweet on a user's timeline. 2013-07-30 15:50:37 -05:00
Ryan Hitchman 4bc268f5a4 cleanup twitter plugin 2013-07-04 13:48:35 -05:00
Ryan Hitchman f3c034df2e Merge pull request #75 from wuddup/master
New twitter plugin with support for API 1.1
2013-07-04 11:25:51 -07:00
Ryan Hitchman 89a8da4ad9 Merge pull request #68 from dpedu/master
Fixed display of /me
2013-07-04 11:24:30 -07:00
Ben a1c44336dd New, simplified twitter plugin with support for API 1.1. 2013-06-26 11:35:39 -07:00
DJCrabhat 2e44b5212d implemented delete
del_quote function was defined, but couldn't be called from the command
parser
2013-04-07 03:48:57 -04:00
Bryan Koroleski fa2bc85082 Fixes .bitcoin command to use the new mtgox API. 2013-03-25 18:59:15 -05:00
Dave Pedu aa6ca6a23f Fixed display of /me 2013-02-24 01:13:12 -05:00
Ryan Hitchman b16e833908 fix somethingawful post count 2013-02-16 23:54:35 -06:00
Ryan Hitchman a29dffbfb7 refactor apikey retrieval, fix lastfm with empty input 2013-01-27 16:40:31 -06:00
Ryan Hitchman 92c6e991e7 cleanup rottentomatoes 2013-01-27 16:05:40 -06:00
Ryan Hitchman f42b8ec280 fix imdb 2013-01-27 16:04:19 -06:00
Ryan Hitchman 8650c8dd39 Merge pull request #65 from tomjakubowski/yahoo-answers
Add Yahoo! Answers plugin
2013-01-27 13:16:30 -08:00
Ryan Hitchman d4461c2b29 Merge pull request #57 from Atheuz/master
UrbanDictionary fixed, required me to change http.py - Also minor nitpick with stock.py
2013-01-27 13:15:51 -08:00
Tom Jakubowski 42d78d06ae Add Yahoo! Answers plugin
The .answer command will search Yahoo! Answers with the given query and
respond with one of the 'chosen' answers returned by Yahoo's API and a
link to the question.
2013-01-19 20:12:11 -08:00
Ed Ceaser f08d035bf7 change the twitter base url to api v1 2012-10-21 13:12:36 -07:00
Chris Skalenda 6bf00fa944 Switch the weather plugin to the wunderground api 2012-09-22 16:21:01 -06:00
Lasse Vang Gravesen 2b321a932e imdbapi.com moved to omdbapi.com, so that's fixed. 2012-09-19 18:22:48 +02:00
Andrew Vehlies ff2155f372 Added PSV and 3DS 2012-07-28 17:46:11 -04:00
Lasse Vang Gravesen 12cd3521e5 Problem with urbandict plugin fixed by replacing \r\n with a space 2012-07-18 18:39:51 +02: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
stoneLeaf 4770c8c227 Updated the Google Translate plugin
The Google Translate API v1 has been stopped since December 1, 2011. From now on, the API is a paid service only.
The plugin has been updated to support v2 and grab the (mandatory) API key from the bot config file.
2012-04-12 16:11:52 +02:00
stoneLeaf b939a94be7 Improved the Last.fm plugin
The API key is now retrieved from the bot config file and the API response is more thoroughly analyzed.
2012-04-12 14:02:36 +02:00
stoneLeaf 25116e20f9 Fixed the suggest plugin
The API get request needed to be tweaked.
2012-04-12 03:41:35 +02:00
stoneLeaf 3c9e6a6736 Added a check to the oblique plugin
Checks if lines can be split.
2012-04-12 03:02:46 +02:00
stoneLeaf b279f96af0 Updated Encyclopedia Dramatica's url
On March 21, 2012, the website moved to a Swedish domain name: http://encyclopediadramatica.se
2012-04-12 02:11:33 +02:00
stoneLeaf ff1832c471 Fixed a locale issue in the youtube plugin
locale.format() can throw a UnicodeDecodeError in some cases. The use of str.decode() prevents its occurrence.
See http://stackoverflow.com/questions/4082645/using-python-2-xs-locale-module-to-format-numbers-and-currency
2012-04-12 01:52:32 +02:00
Ryan Hitchman b3e97f2500 make wolframalpha and urban use apis instead of scraping 2012-02-10 15:04:05 -06:00
Ryan Hitchman a3b295b0c0 update .calc to use lxml, fixes #44 2011-11-07 14:16:56 -06:00
Ryan Hitchman a8eea42f14 revert wikipedia namespace 2011-10-22 15:11:59 -05:00
Ryan Hitchman e2fb20f64c fix wikipedia search (they changed the xml namespace) 2011-10-05 00:27:17 -05:00
Brian Armstrong 5c29e27b43 Patched remember append bug 2011-07-25 02:06:52 -05:00
Alex Vidal 110b038f5f Fixed path lowercasing bug in logging plugin.
Previously, the entire path would be lowercased, which breaks instances where one of the parents of the working directory have capital letters. Now, it only lowercases the actual log filename, not the path.
2011-07-22 07:09:30 -07:00
Ryan Hitchman 039fa64a27 bitcoin.py: get market rate for bitcoins from mtgox 2011-06-10 21:09:01 -06:00
rmmh 85da0e2315 Merge pull request #39 from lahwran/shortrem
added .r and .f aliases for remember and forget
2011-06-09 20:54:54 -07:00
lahwran 982a745a1a added .r and .f aliases for remember and forget 2011-06-09 21:51:25 -06:00
Ryan Hitchman ce67812827 google: unescape titles. drama: set api endpoints to new domain. 2011-05-30 05:18:01 -06:00
Ryan Hitchman 6824443901 add pre: search scene releases, urlhistory: don't alert quoted lines 2011-05-20 00:13:11 -06:00
Ryan Hitchman bf7aeb07da imdb: ignore unknown fields. PEP8 rottentomatoes 2011-05-11 16:40:53 -05:00
Ryan Hitchman a4d70df463 reconnect on socket.error, PEP8 2011-05-11 15:40:04 -05:00
melonhead 339d853258 Added Rotten Tomatoes command 2011-05-04 10:08:14 +08:00
Ryan Hitchman faa68b6af5 refactor vimeo plugin, PEP8 2011-04-13 20:56:30 -05:00
tcneyland 0ed4fcfff4 Removed unnecessary linking to vimeo screenshot 2011-04-14 09:32:53 +08:00
tcneyland 641fec9bfa Added Vimeo plugin 2011-04-14 09:32:52 +08:00
Ryan Hitchman b82372a76c make default user-agent include git revision 2011-03-29 08:48:44 -05:00
Parker Smith 154f457f3a Added an append feature to .remember 2011-03-16 15:08:40 +08:00
Alex Vidal f3b26969f8 Fix spacing issue in wolframalpha docstring. 2011-03-16 00:54:55 +08:00
Alex Vidal 5ea6135927 Fixed a bug with tvdb.py
Certain series will return incomplete episode information. If the episode did
not contain a first run date, the `get_episode_info` function would return
None, but the `tv_next` and `tv_last` functions expected a tuple of three
items.
2011-03-10 01:51:52 +08:00
Eric Palmitesta 1bca0fa7a9 whoops, forgot bam's comments 2011-03-01 00:48:35 +08:00
Eric Palmitesta 97054fe666 updating bigassmessage.py url, url params, and styles 2011-02-23 06:41:19 +08:00
Ryan Hitchman 2095e16a65 give dotnetpad a longer timeout. fixes #21 2011-02-22 16:39:42 -06:00
Alex Vidal 73f3b8ed04 update comments 2011-02-22 12:03:46 -06:00
Alex Vidal f812a393ab remove print statement from metacritic 2011-02-22 11:59:14 -06:00
Alex Vidal 1e30569fb1 return link to metacritic title 2011-02-22 11:54:20 -06:00
Alex Vidal 746146edb4 handle invalid search terms 2011-02-22 11:37:29 -06:00
Alex Vidal 450c681fab strip extra spaces from the release date 2011-02-22 11:28:35 -06:00
Alex Vidal 2b34878441 clean up metacritic error messages 2011-02-22 11:20:14 -06:00
Alex Vidal 9a408433b9 working metacritic plugin 2011-02-22 11:19:00 -06:00
Alex Vidal 67a50f3317 Fix last.fm bug for users not listening to something.
The last.fm plugin previously worked only for users not listening to
anything, and then it was 'fixed' for users listening to something, but
broke for users not listening to something. See lastfm.py comments for
changes.
2011-02-04 03:39:26 +08:00
Ryan Hitchman bad65ba236 fix stock.py colors, minor cosmetic tweaks 2011-02-02 23:49:56 -06:00
Chris Skalenda a769c2267e Add a stock lookup plugin that uses google's api. 2011-02-02 14:54:40 +08:00
melonhead c3ef09c59e Added .tv_last trigger to tvdb.py 2011-01-21 00:11:49 +08:00
Ryan Hitchman 4ea7cb5a46 remove broken .quotedelete 2011-01-16 06:42:20 -07:00
Ryan Hitchman 2171ebd72f add IMDb plugin, courtesy of GhettoWizard 2011-01-11 19:16:17 -07:00
Ryan Hitchman 1295bc6df5 fix somethingawful.py to work with usernames with spaces 2010-12-04 00:38:21 -06:00
rainyday 815efcb902 Edited youtube filter so bot can return limited information on
restricted videos (ex: not allowed in bot's region).
2010-12-03 10:57:14 +08:00
rainyday b21c3e432f Cleaned up sieve.py a little. 2010-12-03 10:57:14 +08:00
Ryan Hitchman 68f2680b54 fix snopes to work with the new page format 2010-12-02 15:32:23 -06:00
Ryan Hitchman c8b4d5e15a make ".quote #channel nick" work 2010-12-02 01:50:05 -06:00
rainyday 8f1f2950cc Fixed somethingawful plugin to look for author class instead of op. 2010-11-26 06:39:43 +08:00
rainyday 151b18f5a2 Fixed somethingawful plugin. 2010-11-26 06:39:43 +08:00
rainyday 83a94fe75f Moved disabled commands around. 2010-11-25 09:21:27 +08:00
rainyday 4d0d730a75 Don't show disabled commands. 2010-11-25 09:21:27 +08:00
rainyday d81aa6d7fb Added ability to ignore commands from users by nick/host. 2010-11-25 09:21:27 +08:00
rainyday a24da5f5d1 Changed help to not display commands from disabled plugins. 2010-11-25 09:21:26 +08:00
Ryan Hitchman a4f7b4ac43 LastFM plugin 2010-11-18 20:11:30 -06: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
Ryan Hitchman 98709ab40c snopes.py: search snopes and return the header of the found article 2010-11-11 10:39:40 -06:00
Ryan Hitchman 7c171959c3 simple adminonly filtering 2010-10-25 23:13:27 -05:00
Ryan Hitchman df75a425d5 Merge github.com:rmmh/skybot 2010-10-13 16:23:33 -05:00
Ryan Hitchman 17803837a0 fix multiword tags 2010-10-13 16:22:00 -05:00
Patrick Hurst fe070309f8 add reply for when user uses .seen on the bot 2010-09-30 05:14:42 +08:00
Ryan Hitchman f6207959ee fix wolframalpha scraping 2010-09-22 21:25:25 -05:00
Ryan Hitchman 31c0689628 last fix for translate.py language matching 2010-09-10 23:18:26 -05:00
Ryan Hitchman 0ed8e159a9 handle translation server errors properly 2010-09-10 22:08:35 -05:00
Ryan Hitchman 36ed83d664 move babel.py to translate.py, add .translate -- use the google translate API for useful work, minor PEP8 fixes 2010-09-10 22:01:20 -05:00
Ryan Hitchman bef56c0a93 change tvdb a bit because I am obsessive 2010-09-10 21:23:17 -05:00
Rob Dennis 1c474fb095 change output to not show unentered titles 2010-09-11 10:15:46 +08:00
Rob Dennis 3cfad0340d now using zipped version of full-series-record 2010-09-11 10:15:46 +08:00
Thomas Wiedenbein f626801646 added 403 response code for private tweets 2010-09-09 10:47:19 +08:00
Rob Dennis 8372502ea5 fix for mutable default argument in utility function 2010-09-06 11:39:13 +08:00
Rob Dennis 59ea02c1fc removal of extraneous comments 2010-09-05 04:50:15 +08:00
Rob Dennis 43fd4dbe19 added output on URL timeout, and change api to use a unique key just for skybot 2010-09-03 12:57:55 +08:00
Ryan Hitchman c2a607198c PEP8 2010-08-29 22:35:27 -05:00
Ryan Hitchman ba565a3eaa modify tvdb to be more in line with skybot coding style 2010-08-29 21:12:03 -05:00
Rob Dennis 93d507342d Addition of .tv_next <series name> command to show next airing episode 2010-08-30 03:33:37 +08: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 713b21d9f7 undo some bad changes 2010-08-24 17:14:55 -05:00
Ryan Hitchman 12035fee94 Merge github.com:rmmh/skybot
Conflicts:
	plugins/misc.py
2010-08-24 17:08:52 -05:00
Ryan Hitchman ea097aad7f redirect links to github 2010-08-24 16:59:47 -05:00
Patrick Hurst 434ff989f2 don't roll on lines like '15 minutes later'
any die-initial roll line has to actually contain dice
2010-08-23 02:19:40 -04:00
Patrick Hurst 3f326dcc22 fix stupid bug involving channel case and ?remember 2010-08-22 20:16:04 -04:00
Patrick Hurst c35f15b981 color fudge dice rolls
when rolling fudge dice, use + and - instead. + is green, - is red.
2010-08-22 20:16:03 -04:00
Patrick Hurst 32aaf97c34 allow empty descriptions for dice rolls 2010-08-22 20:16:03 -04:00
Patrick Hurst b70c703af5 explicitly show each die roll 2010-08-22 20:16:03 -04:00
Patrick Hurst 7876fd57ac dicerolls now have descriptions 2010-08-22 20:15:25 -04:00
Patrick Hurst 4cc12512ff allow dice to be rolled without explicit command
anything that looks like a dice roll will be rolled as such
2010-08-22 20:15:24 -04:00
Patrick Hurst 219fe44d61 add fudge dice
fudge dice are dF's, and are either -1, 0, or +1
2010-08-22 20:15:24 -04:00
Patrick Hurst d34421bd23 change VERSION string
use git describe --always to return a 'version number'
2010-08-22 20:07:27 -04:00
Ryan Hitchman 0b11684197 see bots 2010-08-11 02:31:40 -06:00
Ryan Hitchman 761a012149 minor changes 2010-08-10 13:38:09 -06:00
Ryan Hitchman b5be0217a4 make .dict handle unicode properly 2010-07-24 17:38:28 -06:00
Chris Skalenda 4f5cf197be dotnetpad: make end of line comments work. 2010-07-17 16:52:21 -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
Chris Skalenda b9f74dba71 Handle blank descriptions from google in the google search plugin. 2010-07-08 19:18:25 -06:00
Ryan Hitchman b0259336cd report options when given ambiguous command, make .dict report which word the definition is for 2010-07-08 11:22:43 -06:00
Ryan Hitchman fdf685161e add .o/.oblique command running, see http://github.com/nslater/oblique for more information 2010-06-17 21:55:42 -06:00
Ryan Hitchman 49ba4c5753 add .etymology, courtesy of GhettoWizard 2010-05-11 16:48:05 -06:00
Ryan Hitchman b845bfcf25 hurf (I should stop doing whitespace changes that break things) 2010-05-10 18:02:15 -06:00
Ryan Hitchman 420c8f518d fix command disable bug 2010-05-10 17:59:34 -06: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 e5b623cb68 make '.q add @person blah' possible 2010-04-25 15:40:59 -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
ipsum 148733567e pep8 2010-04-18 13:24:17 -04:00
ipsum 3a2bd24352 updated tf.py to use better syntax 2010-04-16 20:29:12 -04:00
ipsum f22f4770cd added tf.py for counting hats in team fortress, blame gobiner 2010-04-16 17:55:02 -04:00
Ryan Hitchman 63fea08924 add .dict/.define command, respond to CTCP VERSION 2010-04-13 20:57:52 -06:00
Ryan Hitchman 04b1a718f1 fix remember, make tell use notices, remove re because of abuse 2010-04-13 15:39:40 -06:00
Ryan Hitchman a21f27e64e add koran scraping, courtesy GhettoWizard 2010-04-10 16:05:06 -06:00