Node.js Nextcloud Talk Bot | nctb
This is a Node.js module to interact with the Rest-API provided by Nextcloud.
Install
npm install --save nextcloud-talk-bot
Usage
// Import Classconst NextcloudTalkBot = ; // Create instance w/ bot login dataconst bot = server: '<server_url_here>' user: '<bot_username_here>' pass: '<bot_password_here>' autoJoin: true; // Simple usage; reacts to all channels the bot joinedbot; // Join a channel and react to it's contentsconst boppy = bot; // Reaction bases on RegExp (simple)boppy; // Reaction based on RegExp (anvanced)boppy; // Need to start pollingbot;
See examples directory for some examples on using this module.
Origin
Basically I was trying to replace big-company-based services on my mobile with a fully integrated Nextcloud.
Since Contacts, Calendar, Notes, Office-Apps, etc. are stable enough, I went for the replacement of Telegram/Hangouts/WhatsApp/ with Talk. One massive limitation was that I had chat bots present in my current messaging solution that I didn't want to miss. Their main propose was to notify me in case of infrastructure problems and to help my out with my sieve-based neck attachment.
So I took a look at the available Chat Bots for Telegram and came back to the node module I already used to use -
yagop's Telegram Bot API. So I implemented nctb to match some of its
behaviour, as being an EventEmitter (based on EventEmitter3) and using .onText()
for easy interaction. I also
based much of the surroundings on yagop's Repo (like this README and other docs).
Community
The first thank goes out to yagop and contributors for the Telegram Bot API Node.js Module.
We thank all the developers in the Open-Source community who continuously take their time and effort in advancing this project and all underlying projects
As soon as there is one, I'll also be absolutely happy to thank any contributor!
License
The MIT License (MIT)
Copyright © 2020 Henning Bopp henning.bopp@gmail.com