@totigm/bot-builder
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

Welcome to @totigm/bot-builder 👋

NPM version GitHub repo Downloads CI GitHub repo stars Documentation License: MIT

📄 Introduction

This is a library to create bots. It handles all the commands stuff behind the scenes, so you can focus on your bot's logic.

This library by itself is not a bot, but it provides an abstraction layer to create bots for different platforms. You just have to implement the Bot class, specifying a client and an auth method, and it will take care of the rest.

The Bot class uses generics types for the Client and Message types, so you can use it with any client for any platform that you want. They extend the EventEmitter and BaseMessage types respectively.

🔗 Quick links

💻 Installation

npm i @totigm/bot-builder

or

yarn add @totigm/bot-builder

🚀 Getting started

See how to create a bot for WhatsApp or Discord. You can also create your own bot for any platform you want.

Start adding commands to your bot by checking the reference documentation.

🤖 Example usage

Check out @totigm/whatsapp-bot and @totigm/discord-bot to see implementations for different platforms.

⚙️ Options

When you create a bot, you can pass an options object to customize it. Check the bot options documentation for more information.

const botOptions = { ... };

const bot = new Bot(botOptions);

👤 Author

GitHub: totigm
Twitter: totigm8
LinkedIn: totigm
NPM: totigm

🤝 Contributing

Contributions are more than welcome!

We think that you might have great ideas to make this project even better. If you do, please create a pull request and/or issue following the contribution guidelines.

⭐️ Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2022 Toti Muñoz.
This project is MIT licensed.


This project was made with ❤ and TypeScript

Readme

Keywords

Package Sidebar

Install

npm i @totigm/bot-builder

Weekly Downloads

473

Version

1.2.1

License

MIT

Unpacked Size

37.4 kB

Total Files

21

Last publish

Collaborators

  • totigm