It is expected to complete this tutorial in under 15 minutes. This tutorial will provide both reactive and imperative approaches to designing a music bot for users who desire to implement either paradigm. Reactive programming, while more efficient, is a paradigm shift from the traditional imperative Java programming model. This tutorial will provide an in-depth guide on how to create a music bot from scratch using Discord4J (and LavaPlayer).ĭiscord4J facilitates an environment where a Discord bot can be programmed in two different ways, reactively and/or imperatively.
One of the most common, and almost necessary, features for any Discord bot is the ability to playback music. Feel free to provide feedback on it in our Discord Server or through a GitHub issue. This tutorial is up to date with Discord4J v3.0.x and v3.1.x.