Create Elegant Discord Bots with Laracord

Laracord is a micro-framework to build your next Discord bot with Laravel alongside DiscordPHP. With this package, you can create commands (!example), slash commands (/example), events, and more. Your bot can respond to these features using familiar Artisan console tools and everything we love about Laravel.

The main features this package provides out of the box give you everything you need to be productive quickly:

  • ⚡️ Out of the box support for databases, caching, and many other Laravel features thanks to Laravel Zero.
  • 🚀 Instantly generate working bot commands and event listeners with zero knowledge.
  • 🧑‍💻 Automatic handling of registering/updating/unregistering application slash commands.
  • 👷 Generate asynchronous services/tasks that run parallel to the bot.
  • 🌎 Optional HTTP Server with native Laravel routing and Livewire support.
  • 🔧 Fully configurable and extendable.
  • 💄 Beautiful console logging with timestamps.
  • 🔍️ Fully documented and maintained.

Another neat feature is an optional HTTP server (reactphp/HTTP) with Laravel routing support to create webhooks or an API to interact with your bot. For example, your bot could accept an incoming GitHub webhook that you could then handle with your bot.

Laracord console logging
Laracord console logging

To get started with this package, check out the documentation at laracord.com. The source code is available on GitHub at laracord/laracord.


The post Create Elegant Discord Bots with Laracord appeared first on Laravel News.

Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.

Read more

© 2024 Extly, CB - All rights reserved.