ctzn-bot

CTZN Bot

Usage no npm install needed!

<script type="module">
  import ctznBot from 'https://cdn.skypack.dev/ctzn-bot';
</script>

README

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