1.0.5 • Published 1 year ago

photop.js v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

npm.io

About

Photop.js is a library that allows you to easily interact with Photop's Rest API

Getting Started

Run this in your command line to install Photop.js

npm i photop.js

To login to your bot account

const Photop = require('photop.js');

const client = new Photop.client('token', () => {
   console.log("Ready to go!");
});

Demo

Here is a simple bot that replies to posts that mention it.

const Photop = require('photop.js');

const client = new Photop.client('token', () => {
    client.onMention(post => {
        post.chat('Hello, World!');
    });
});

Credits

Original version of photopjs by IMPixel

Documentation by Audomations (or symph)

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago