15 Commits

Author SHA1 Message Date
James Lu
a0ddd8e309 Weather: don't require reload on API Key change; reword almanac output ("Average High/Low" instead of "Normal High/Low") 2015-03-13 22:37:31 -07:00
James Lu
914c5c4de3 Finish rewriting parts of the plugin
(Closes GLolol/Supybot-Weather#1)

- Removed configuration option 'disableColoredTemp' (this will likely be readded in the form of a more global, strip-all-formatting option later)
- plugin.py: copy license into file heading
- Remove unused _moonphase function
- Rewrite almanac, astronomy, and forecast (merging multiple if statements into one)
- Update tests and output formatting

Signed-off-by: James Lu <GLolol1@hotmail.com>
2015-03-13 17:18:40 -07:00
James Lu
f5178e5aad Weather: Strip trailing whitespace? 2014-11-29 22:55:02 -08:00
GLolol
80420047e1 Weather: use irc.error() for error messages & update test.py 2014-11-23 11:45:02 -08:00
spline
b1f06c79f8 Merge pull request #6 from GLolol/tests-warnIfNoApiKey
test.py: Show a specific error if the apiKey is not set
2014-10-25 09:08:16 -04:00
GLolol
f9fc58c95f test.py: Show a *specific* error if the apiKey is not set, instead of causing a TypeError [ci skip] 2014-10-24 21:27:50 -07:00
GLolol
d84cbe59a5 test.py: Attempt to fix the travis build 2014-10-24 10:35:16 -07:00
spline
c88f7e5f8d Move apiKey out of test files. 2014-10-12 05:57:25 -04:00
spline
42058a81ce Add in more tests. 2014-10-11 11:11:21 -04:00
spline
4651028113 Fix tests. 2014-10-11 10:49:44 -04:00
spline
e1f14249d0 Fix tests. 2014-10-11 10:25:03 -04:00
spline
77e9aa2c22 Fix tests. 2014-10-11 10:22:20 -04:00
spline
264f233c51 Add in tests. 2014-10-11 10:20:15 -04:00
spline
8c321f0dd3 Update copyrights. Fix one thing in init. Add an option in config for symbols. Fix up some formatting in output. Add in symbols table. Change over strip to internal supybot method. 2013-01-15 13:51:13 -05:00
spline
24b597ecb3 Initial push. 2012-12-12 23:47:45 -05:00