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
- Host: GitHub
- URL: https://github.com/lmangani/ctzn-bot
- Owner: lmangani
- Created: 2021-04-11T14:17:11.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-16T17:24:29.000Z (about 5 years ago)
- Last Synced: 2024-10-05T13:22:28.034Z (over 1 year ago)
- Topics: bot, ctzn, ctznry, hyper, ktzn
- Language: JavaScript
- Homepage:
- Size: 42 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)