The purpose of libkol is to create a Python package that makes it extremely easy to develop code that works with The Kingdom of Loathing. It can be used for anything from writing short scripts to complex bots.
It is based on pykol, on which both kBay and wadbot were built.
libkol is for programmers who are interested in writing scripts and bots for KoL. If you do not feel comfortable writing code, then libkol is probably not for you.
See examples/
for example uses of libkol
.
libkol requires Python 3.6+.
To install third-party libraries
$ make install
libkol includes a unittest suite, to showcase some of its functionality and to help ensure that new game changes don't break your existing code. Developers are strongly encouraged to add unit tests for new features that they create.
To run the test suite:
$ make test username=[username] password=[password]
- Fork libkol
- Clone your fork -
git clone git@github.com:your_username/libkol.git
- Add a remote to this repository -
git remote add upstream git://github.com/python-kol/libkol.git
- Fetch the current libkol sources -
git fetch upstream
- Create a topic branch -
git checkout -b my_branch upstream/master
- Commit (or cherry-pick) your changes
- Push your branch to github -
git push origin my_branch
- Create an Issue with a link to your branch
- That's it!