Foobar is a Python library for dealing with word pluralization.

Overview

πŸš€ Rocket-chat Bot

Foobar is a Python library for dealing with word pluralization.

Installation

To local development without docker you need to install the project dependencies.

yarn install

Running the project

docker-compose up
or
yarn dev

Configuration

Create a "shared" folder in the root project directory.

To make schedule messages, create a "messages.json" file inside the shared folder.

It has to be an array of messages containing a interval for node-cron to understand, the actual message and finally the room that the message should go to (The room needs to be one of the rooms specified in the ".env" configuration).

Example of messsages:

[
  {
	"interval": "0 15,10 * * *",
	"message": "@all Hello everyone!",
	"room": "general"
  }
]

To make messages for the bot to respond other users, create a "responses.json" file inside the shared folder.

It has to be an array of responses containing "incoming" that stands for the user input, and "response" that stands for the bot response (if "{user}" exists in the message it will be replaced with the user's name).

Example of responses:

[
  {
	"incoming": "Hello bot",
	"response": "Hello, {user}!"
  }
]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

You might also like...

A simple library for using the JavaScript Full Screen API.

BigScreen A simple library for using the JavaScript Fullscreen API. Why should I use it? BigScreen makes it easy to use full screen on your site or in

Dec 22, 2022

HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.

HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.

HLS.js is a JavaScript library that implements an HTTP Live Streaming client. It relies on HTML5 video and MediaSource Extensions for playback. It wor

Jan 2, 2023

A simple bot for twitch, which has a silly AI in places. The library "cleverbot-free" is used for AI.

A simple bot for twitch, which has a silly AI in places. The library

AITwitchChat A simple bot for twitch, which has a silly AI in places. The library "cleverbot-free" is used for AI. Requiments tmi.js Node.js 16.6.0 or

Dec 7, 2022

Aviatojs - A simple library to trim, cut and join audio files.

Aviatojs A simple library to trim, cut and join audio files. Usage For a fully working example refer to this example Importing import {AviatoAudio}

Oct 7, 2022

Full logging system using the djs library (v13.6.0)

Loggin-system-djs-v13.6 Full logging system using the djs library (v13.6.0) NOW ONTO MULTIPLE DISCLAIMERS: β—» It is crucial that you first understand t

Aug 26, 2022

Library to calculate a Mean Opinion Score (MOS) from 1 to 5 for audio and video real time communications

RTC SCORE Library to calculate a Mean Opinion Score (MOS) from 1 to 5 for audio and video real time communications. The first version of the algorithm

Nov 27, 2022

Vio-MD is multi-device whatsapp bot using library @adiwajshing/baileys and example bot of Violetics API

Vio-MD is multi-device whatsapp bot using library @adiwajshing/baileys and example bot of Violetics API

Vio Multi Device WhatsApp Bot Use at your own risk! Build with Baileys and JavaScript's native Map class ( as a command handler ), using https://viole

May 31, 2022

🌈 A very simple window communication library

🌈 A very simple window communication library

window-channel A very simple window communication library. Get Start! Install npm install @haiyaotec/window-channel Usage/Examples Client import

Oct 29, 2022

Telegram-API Library Written in TypeScript

TeleLib a node js Telegram Wrapper written in TypeScript. installation yarn add @telelib/telelib or npm i --save @telelib/telelib how to use create a

Jul 27, 2022
Owner
Diego Sousa
:fire:
Diego Sousa
A Javascript library for working with Audio. It provides a consistent API for loading and playing audio on different browsers and devices. Currently supports WebAudio, HTML5 Audio, Cordova / PhoneGap, and a Flash fallback.

SoundJS SoundJS is a library to make working with audio on the web easier. It provides a consistent API for playing audio in different browsers, inclu

CreateJS 4.3k Dec 31, 2022
πŸ“· The fastest and most versatile JS EXIF reading library.

Usage β€’ Installation β€’ Quick start β€’ Demos β€’ API β€’ Perf β€’ Changelog β€’ FAQ β€’ Contributing ?? The fastest and most versatile JavaScript EXIF reading lib

Mike 786 Jan 2, 2023
:musical_score: ts-audio is an agnostic library that makes it easy to work with AudioContext and create audio playlists in the browser

ts-audio Β· ts-audio is an agnostic and easy-to-use library to work with the AudioContext API and create Playlists. Features Simple API that abstracts

Evandro Leopoldino Gonçalves 284 Dec 25, 2022
:loudspeaker: A JavaScript library to add voice commands to your sites, apps or games.

Voix JS A JavaScript library to add voice commands to your sites, apps or games. NOTE: At this time, this library is only compatible with Google Chrom

Guille Paz 548 Dec 8, 2022
AmplitudeJS: Open Source HTML5 Web Audio Library. Design your web audio player, the way you want. No dependencies required.

Documentation β€’ Examples β€’ Tutorials β€’ Support Us β€’ Get Professional Help AmplitudeJS is a lightweight JavaScript library that allows you to control t

Server Side Up 3.9k Jan 2, 2023
A web video player built for the HTML5 world using React library.

video-react Video.React is a web video player built from the ground up for an HTML5 world using React library. Installation Install video-react and pe

null 2.4k Jan 6, 2023
VexFlow 3 - A JavaScript library for rendering music notation and guitar tablature.

VexFlow 3 - A JavaScript library for rendering music notation and guitar tablature.

Mohit Cheppudira 3.5k Jan 6, 2023
A Node JS Express/Serverless demo application that creates a slideshow video using the Pexels image library and Shotstack video editing API.

Shotstack Pexels Slideshow Video Demo This project demonstrates how to use the Shotstack cloud video editing API to create a video using an HTML form

Shotstack 25 Dec 9, 2022
A Discord bot library to make the development of a bot a little bit easier.

Discord Bot Framework (DBF) A basic Discord bot framework to allow for easier creation of bots. With this library, you can easily parse and handle com

Yoo-Babobo 1 Dec 23, 2021
Buzz, a Javascript HTML5 Audio library

Buzz is a small but powerful Javascript library that allows you to easily take advantage of the new HTML5 audio element. It tries to degrade silently on non-modern browsers.

Jay Salvat 1.2k Dec 10, 2022