Metadata-Version: 2.1
Name: amy
Version: 3.0.0
Summary: A module to write amy plugins
Home-page: https://gitlab.com/amy-assistant/plugins/python
Author: Liam Perlaki
Author-email: lperlaki@icloud.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Requires-Dist: pika

# AMY Plugin

[Amy Assistant](http://amy-assistant.at)

Just import amy to write your plugin.

```py
from amy import Plugin, Instance, Message

class Messenger(FacebookClient, Instance):

    def onCreate(self, username):
        self.username = username

    def onAuth(self, token):
        FacebookClient.__init__(self, self.username, token)

    def onStart(self):
        FacebookClient.listen()

    def onStop(self):
        FacebookClient.stopListening()

    def myNewMessageFunc(message)
        unifiedMessage = Message().setPlatform('messanger')..toDict()
        Plugin.publishMessange(unifiedMessage)


def main():
    Messenger = Plugin('messenger', Messenger)


if __name__ == "__main__":
    main()

```


