1.0.5 • Published 1 year ago
photop.js v1.0.5
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)