Skip to main content

A module to write amy plugins

Project description

AMY Plugin

Amy Assistant

Just import amy to write your plugin.

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')
        #   .setUser(message['user'])
        #   ...
        Plugin.publishMessange(unifiedMessage.toDict())


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


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

amy-3.3.6.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amy-3.3.6-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file amy-3.3.6.tar.gz.

File metadata

  • Download URL: amy-3.3.6.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3

File hashes

Hashes for amy-3.3.6.tar.gz
Algorithm Hash digest
SHA256 04428adf958e4be50b110d6fac4f76bd10c53c93381ae39884a5971c3f52e4de
MD5 a0f20514c981b995c99de6b29cc182fc
BLAKE2b-256 b8e6406d7e280adfbfb90fc25bdbd92256d65cee217a75c1b6537a3a3867182f

See more details on using hashes here.

File details

Details for the file amy-3.3.6-py3-none-any.whl.

File metadata

  • Download URL: amy-3.3.6-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3

File hashes

Hashes for amy-3.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 40ae1c07a49b184b9f7eb33319d904dda79ebc7d982e74444556d4eb21a92dc4
MD5 eaf0ab0742546490cbd3d7c15fdd4a79
BLAKE2b-256 f2838c0d59aa4c0c77177e6595bf276833bac7a60321e4089fbefd0cc30b5d60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page