How f-wllr/discordbot works
Project type and purpose
• This is a single‐module Java application implementing a Discord bot.
• It uses the JDA (Java Discord API) library to connect to Discord, listen to events, and execute commands such as a “helloWorld” command.
File structure
• pom.xml: Maven build config; pulls in JDA and any other dependencies.
• src/main/java/com/fwllr/discordBot/Main.java: Bootstraps the bot, loads token, activity, and channel IDs, and starts the JDA instance.
• botListeners.java: Implements JDA’s event listener interfaces for handling onMessage, onGuildMemberJoin, etc.
• commands/helloWorld.java: Illustrates the Command‐pattern submodule for individual bot commands.
README for additional insights
• Configuration is hard-coded in Main.java (botToken, activity, logChannelID, welcomeChannelID).
• No database or external persistence—state is minimal and in-memory.
• Deployment is via a self‐contained Java 17 JAR.