https://github.com/ryanfarber/rf-bot-tools
https://github.com/ryanfarber/rf-bot-tools
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryanfarber/rf-bot-tools
- Owner: ryanfarber
- Created: 2020-06-08T08:09:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-29T14:29:32.000Z (about 4 years ago)
- Last Synced: 2025-07-03T14:56:56.807Z (12 months ago)
- Language: JavaScript
- Size: 71.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rf-bot-tools
# *NOTE* THIS IS A WORK IN PROGRESS
a suite of tools to help with coding stuff with bots
### Modules
1) bot-message-parser
2) webhook-parser
3) text-cleaner
4) context-builder
5) user-profile
### context-builder
- Discord
- Twitch
- Twilio
- Frame.io
- Carbon Copy Cloner
- Github
- Transmission
### bot-message-parser
this module will parse raw text from a chat, and output the bot trigger, and following text
```javascript
const { BotMessageParser } = require("rf-bot-tools");
var text = "!bot hello world";
var message = new BotMessageParser(text);
console.log(message.trigger);
// !bot
console.log(message.text);
// hello world
```
### ez-database
a tool for interfacing with `data-store` to easily read and write the database
```javascript
const { Database } = require("rf-bot-tools");
var database = new Database("database_name","user_id");
console.log(database.set("nickname", "bobby jones"));
// "bobby jones"
````