Download the PHP package rtippin/messenger-bots without Composer
On this page you can find all versions of the php package rtippin/messenger-bots. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rtippin/messenger-bots
More information about rtippin/messenger-bots
Files in rtippin/messenger-bots
Download rtippin/messenger-bots
More information about rtippin/messenger-bots
Files in rtippin/messenger-bots
Vendor rtippin
Package messenger-bots
Short Description Messenger Bots Addon
License MIT
Homepage https://github.com/rtippin/messenger-bots
Package messenger-bots
Short Description Messenger Bots Addon
License MIT
Homepage https://github.com/rtippin/messenger-bots
Please rate this library. Is it a good library?
Informations about the package messenger-bots
Messenger Bots
This package is an addon for rtippin/messenger
Notice
- This package is not required to use the bots feature built into
Messenger
. - For more documentation on creating custom bot handlers and packages, visit the official Chat Bots documentation.
Features:
- Ready-made bot action handlers and packages that will plug into the core messenger package.
- Register only the selected bots you wish to use, or let us auto-register all bots we provide.
- Included Bot Handlers:
- Chuck Norris Bot
- Coin Toss Bot
- Commands Bot
- Dad Joke Bot
- Document Finder Bot
- Giphy Bot
- Insult Bot
- Invite Bot
- Joke Bot
- Kanye West Bot
- Knock Bot
- Location Bot
- Nuke Bot
- Random Image Bot
- Reaction Bomb Bot
- Reaction Bot
- Reply Bot
- Rock Paper Scissors Bot
- Roll Bot
- Weather Bot
- Wikipedia Bot
- YoMomma Bot
- YouTube Bot
- Included Packaged Bots:
- Games Package
- Jokester Package
- Neo package
Prerequisites
- To use this package, you must already have the core Messenger package installed.
- You must have bots enabled from within the messenger.php config, or your
.env
. - The built-in bot subscriber should also be enabled, unless you wish to register your own event subscriber.
- If the subscriber is queued, be sure to have your queue worker process the defined channel,
messenger-bots
is the default.
Installation
Via Composer
Config
Publish the config file
- To use weather bot, you must get an API key from Weather API
- To use YouTube bot, you must get an API key from Google Developers Console
- To use Giphy bot, you must get an API key from Giphy
- You may use the location bot without an API key, but for commercial use, you must get an API key from IP API
- Random image bot will use unsplash as the default endpoint to grab a random image from. You may overwrite this endpoint.
Auto Registering Handlers and Packages
- If you plan to use all the bot handlers and packaged bots provided, you can skip registering them manually by enabling the
BOT_AUTO_REGISTER_ALL
flag.
Update your .env
Manually Registering Handlers and Bot Packages
- Inside your
MessengerServiceProvider
(or any of your providers), you must register all bot handlers and bot packages you want enabled in your application. - You can use the
MessengerBots
facade to register the handlers and packages. Be sure you do it inside theboot
method.
Example:
Registered handlers and packages will now be available to choose when adding an action to a bot or installing a packaged bot.
Credits - Richard Tippin
License - MIT
Please see the license file for more information.
All versions of messenger-bots with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2|^8.3
ext-json Version *
guzzlehttp/guzzle Version ^7.3
rtippin/messenger Version ^1.23
ext-json Version *
guzzlehttp/guzzle Version ^7.3
rtippin/messenger Version ^1.23
The package rtippin/messenger-bots contains the following files
Loading the files please wait ....