Skip to content

lmangani/ctzn-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ctzn-bot

Simple bot client for CTZN

Status

  • Nothing to see here. Meow on.

Usage

npm install ctzn-bot

Hack

Configure your CTZN settings in config.json and hack with example.js

Exports

const bot = require('ctzn-bot');

// Session
bot.connect(cb function)
bot.disconnect()
bot.login(config json)
// Posts
bot.postSelf(title string, body string, blob string)
bot.postCommunity(title string, body string, blob string)
bot.postComment(text string, root obj)
bot.pushBlob(base64 string)
bot.getPosts(userId string, limit int)
// Notifications
bot.getNotification(cb function)
bot.getNotifications(limit int)
// Lists
bot.getCommunities()
bot.getAccounts()

Contact

Making a bot? Join the Bot Community on CTZN

Releases

No releases published

Sponsor this project

 

Packages

No packages published