Commit graph

34 commits

Author SHA1 Message Date
jesopo
9c4902dcfe "EventsResultsError"->"EventResultsError", move errors to utils.error 2019-11-18 12:06:59 +00:00
jesopo
4a4a0ac45b dont fail !weather when we decide a nickname is a location 2019-10-16 15:53:34 +01:00
jesopo
b362e7d760 if a word is known as a nickname but the user has no location, treat as location 2019-09-17 15:06:13 +01:00
jesopo
69bab50335 use reverse geocoding to turn location to latlon for weather 2019-07-16 16:42:32 +01:00
jesopo
61d354eb94 use stdout.append_prefix to put user nickname in without color 2019-07-03 14:04:36 +01:00
Anton McClure
b443202030
Add user nickname to \!weather prefix 2019-07-03 12:03:48 +00:00
jesopo
2ef85960e9 Wind speed is given to us in metres per second. convert to kph 2019-06-24 07:30:29 +01:00
jesopo
0c9dfd5bdb Also show windspeed in MPh 2019-06-24 07:12:58 +01:00
jesopo
00d7da9967 location_name will not be defined when querying a location instead of a user 2019-06-18 16:53:57 +01:00
jesopo
14303f354c 'location' wasn't the variable i thought it was 2019-06-18 16:40:42 +01:00
jesopo
d43cef6543 Save location name from geocoding, use it for !w when available
closes #71
2019-06-18 16:36:22 +01:00
jesopo
2ed1cf2e4a Only try to show !w country when it is available. closes #72 2019-06-18 16:35:51 +01:00
jesopo
268c5adb3c Add depends-on hashflags to relevant modules 2019-05-25 21:40:06 +01:00
jesopo
724b3380d3 Use require_setting in user_time.py and weather.py 2019-05-23 11:50:12 +01:00
jesopo
f04d9d966e Query weather for given args if they don't look like a user 2019-05-05 00:16:55 +01:00
jesopo
3fce209a99 Change location.py to use lat/lon instead of continent/country/city 2019-04-28 15:38:26 +01:00
jesopo
74ef18a418 Add !w as an alias of !weather 2019-04-28 15:21:09 +01:00
jesopo
a7a3f5fd25 Remove incorrect and redundant usage !weather 2019-04-28 15:20:37 +01:00
jesopo
91d32dae9b "%", not "," 2019-04-28 14:13:26 +01:00
jesopo
33fc4ffbf7 Actually provide user nickname in !weather error message 2019-04-28 14:12:35 +01:00
jesopo
cbed30ed62 Change location.py to use geocoding, change weather.py in line with it 2019-04-28 12:11:23 +01:00
jesopo
793d234a0b 'utils.http.get_url' -> 'utils.http.request', return a Response object from
utils.http.request
2018-12-11 22:26:38 +00:00
jesopo
8ea6db9422 Standardise "Failed to load results" errors! 2018-10-20 20:53:24 +01:00
jesopo
69d58eede2 Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
2018-10-03 13:22:37 +01:00
jesopo
10ef985a8a Switch to using docstring for usage, permission and require_mode 2018-09-30 17:29:09 +01:00
jesopo
8b0314b190 Use ModuleManager.BaseModule in more modules 2018-09-27 11:46:10 +01:00
jesopo
51a52e2b0e Switch to using @Utils.hook and docstrings for event hooks 2018-09-26 18:27:17 +01:00
jesopo
ecb9d7cb3f Move most code in root directory to src/ 2018-09-24 15:13:27 +01:00
jesopo
fcbb7c960c Refactor everything to use delimited events 2018-09-19 13:25:12 +01:00
jesopo
8c6ab17e57 give an Exports object (actually, ExportsContex object) to each module, to
facilitate things like !set and !channelset without using the events system
2018-09-02 19:54:45 +01:00
jesopo
9874f79b49 Give modules event objects with "context"s, to facilitate purging all the event
hooks for a module
2018-08-31 12:55:52 +01:00
jesopo
9b2556a65a
added usage help to a lot of modules, added a verbose option to karma.py. 2016-04-06 12:02:44 +01:00
jesopo
87af05d4b6
added a "hashflag" to modules to stop modules being loaded that rely on a not-present config option. 2016-03-30 19:31:23 +01:00
jesopo
f943d63098
first commit. 2016-03-29 12:56:58 +01:00