RainBot Module Library for Python
Project description
Proper documentation and specifications will be coming with RainBot v0.5.0 (This includes a working link to library web page)
To install
pip install pyrml
To generate a simple scaffold (assuming rainbot is installed)
rainbot -m py YourModuleName
Example Usage
from pyrml import Module
class Echo(Module):
def __init__(self, name, desc):
Module.__init__(self, name, desc)
def echo(self, msg, args):
self.say(msg["Args"][0], " ".join(args))
def main():
m = Echo("Echo", "An echo mdoule")
m.add_command("echo", {
"Help": "Repeats arguments",
"Fun": m.echo
})
m.register()
if __name__ == '__main__':
main()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyrml-0.2.0.zip
(4.2 kB
view hashes)