An open API service indexing awesome lists of open source software.

https://github.com/lmangani/ctzn-bot

Simple bot client for CTZN
https://github.com/lmangani/ctzn-bot

bot ctzn ctznry hyper ktzn

Last synced: 10 months ago
JSON representation

Simple bot client for CTZN

Awesome Lists containing this project

README

          

# ctzn-bot
Simple bot client for [CTZN](https://ctznry.com)

### 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](https://ctznry.com/bots@ctzn.one) on [CTZN](https://ctznry.com)