Ben Kurtovic
b1cf39ac64
major improvements to editing; fixes, cleanup, support for AssertEdit is complete w/ logging in following a failed assertion; bugfixes
il y a 13 ans
Ben Kurtovic
4f3a5930c8
edit support!
il y a 13 ans
Ben Kurtovic
3bb5228cbf
I'm not sure why I made this huge mistake but errrrghhhh.
il y a 13 ans
Ben Kurtovic
cddb22636f
wikitools fix in User when said user is really old and the API doesn't give a registration date
il y a 13 ans
Ben Kurtovic
4939cd0456
bleh
il y a 13 ans
Ben Kurtovic
08b6868044
drop AM/PM in favor of just UTC
il y a 13 ans
Ben Kurtovic
7d464aeac4
argh
il y a 13 ans
Ben Kurtovic
4488f6f5e3
!registration
il y a 13 ans
Ben Kurtovic
e06b61393c
!praise
il y a 13 ans
Ben Kurtovic
7c8353530a
some cleanup; use command issuer's IRC nick as username if none is provided
il y a 13 ans
Ben Kurtovic
87a85392e4
link to x's tool
il y a 13 ans
Ben Kurtovic
9125a610ea
!editcount/!ec and fix
il y a 13 ans
Ben Kurtovic
ff9f6323eb
I can has page edit support?
il y a 13 ans
Ben Kurtovic
953527e473
ignore maxlag on IRC commands, because these are started explicitly by users
il y a 13 ans
Ben Kurtovic
8dc023fcac
support for Maxlag and AssertEdit in API queries, via config.json and Site.__init__ kwargs; patched holes in Site._api_query, including stability improvements and support for retrying queries when servers lag
il y a 13 ans
Ben Kurtovic
0ef6493855
fixy, fixy
il y a 13 ans
Ben Kurtovic
868ad8eab8
Reorganizing functions in config.py; store User-Agent and IRC version in config; exception, docstring, and comment cleanup.
il y a 13 ans
Ben Kurtovic
3fa5d0a178
bugfix!
il y a 13 ans
Ben Kurtovic
0992d3c9d9
adding CTCP command support; cleanup
il y a 13 ans
Ben Kurtovic
684bb9a8c3
fix
il y a 13 ans
Ben Kurtovic
3405845303
minor fixes, cleanup, and general improvements
il y a 13 ans
Ben Kurtovic
4a7f901d71
Merge branch 'feature/tests-framework' into develop
il y a 13 ans
Ben Kurtovic
39a4d22620
task loading and running both work now, including the schedule and !tasks command\nbot restructuring should be complete - woo!
il y a 13 ans
Ben Kurtovic
499f58f1bb
userpage -> talkpage
il y a 13 ans
Ben Kurtovic
b4ce673c03
derp!
il y a 13 ans
Ben Kurtovic
d207baaee2
ported afc_report to wikitools and cleaned it up massively; added creator() method to Page; safety check in functions._get_site_object_from_dict()
il y a 13 ans
Ben Kurtovic
9237a7ed9e
all IRC commands should work now; renamed tasks.py to threads.py to avoid conflicting with bot/tasks/
il y a 13 ans
Ben Kurtovic
af2e01a330
fixing imports in IRC commands
il y a 13 ans
Ben Kurtovic
99d0e7588f
loading commands now works, along with 'help' and 'test'; docstring fixes, etc
il y a 13 ans
Ben Kurtovic
8c6fb2e8ba
more cleanup, improvements, fixes, whatever; restructured command files, but haven't done all of them yet
il y a 13 ans
Ben Kurtovic
ff7af4eb6b
cleaned up RC class a lot; get_pretty() -> prettify()
il y a 13 ans
Ben Kurtovic
bffa9b6739
Cleaned up Data class a bit.
il y a 13 ans
Ben Kurtovic
d79d99b5ae
cleanup, fixes, etc to Connection and a minor docstring change to BaseCommand
il y a 13 ans
Ben Kurtovic
5c954b23d1
syntax error fix
il y a 13 ans
Ben Kurtovic
b7b885beb4
watcher_logic -> rules
il y a 13 ans
Ben Kurtovic
b0da4531b2
tons of improvements, import fixes, cleanup, etc
il y a 13 ans
Ben Kurtovic
8df073c457
.gitigore - minor change/fix
il y a 13 ans
Ben Kurtovic
68af0e796f
restructuring everything for unit tests, etc; bot doesn't work anymore, but I'll fix that in a bit
il y a 13 ans
Ben Kurtovic
15001bf513
Merge branch 'feature/wikitools-core' into develop
il y a 13 ans
Ben Kurtovic
4b03606cec
really, really minor fix in docstring of watcher_logic.py
il y a 13 ans
Ben Kurtovic
c970f01bd6
fix
il y a 13 ans
Ben Kurtovic
48c45ad2a1
Merge branch 'develop' into feature/wikitools-core
il y a 13 ans
Ben Kurtovic
d0cf12aa86
fix in crypt.py
il y a 13 ans
Ben Kurtovic
a7367856ee
Finished docstrings in wikitools.
il y a 13 ans
Ben Kurtovic
e4f8fb2e21
Major additions to Page in wikitools.
* Page: added about 400 lines of rambling nonsense.
* Exceptions: added RedirectError.
il y a 13 ans
Ben Kurtovic
4bada57a9b
Some quick updates to wikitools before I commit Page.
* Site: api_query() -> _api_query(); api_query() acts as a wrapper for _api_query(), accepting API params as **kwargs.
* Various cleanup throughout and minor fixes.
il y a 13 ans
Ben Kurtovic
a515a004c8
Docstrings for everything in User, cleaned stuff up a bit.
il y a 13 ans
Ben Kurtovic
434863dcd1
Docstrings for everything in Site; some cleanup in Site/Functions.
il y a 13 ans
Ben Kurtovic
77c541a513
Accept gzipped data and decompress it in api_query().
il y a 13 ans
Ben Kurtovic
612c9c8ff6
Major improvements to cookies, login/logout, and crosswiki support.
* Exceptions: New PermissionsError; reworded docstring of SiteAPIError.
* Site: __init__() accepts an optional cookiejar parameter, otherwise we
use CookieJar(). Added five new cookie/username-related methods. Only
login from __init__() if we are missing valid login cookies and a user/
pass was provided. _login() and _logout() both try to save cookies via
_save_cookiejar(). _load_attributes() automatically refreshes all
attributes other than namespaces if at least one is missing, instead of
only the missing ones. api_query() raises SiteAPIError if either
self._base_url or self._script_path is missing. Removed some pointless
methods and renamed one; added domain().
* Functions: _get_site_object_from_dict() is cleaner, adds our cookiejar
to Site instances using _get_cookiejar() to load a LWPCookieJar() object
from the ".cookies" file in our project root. The same cookiejar is
returned for every site, enabling crosswiki login, via a global variable.
* User: Renamed some methods.
* .gitignore: Added .cookies file.
il y a 13 ans