Latte-Corporation / HardLoop

A Minecraft server project with automated resets and infinite gameplay loops, designed to enhance survival challenges.
MIT License
3 stars 0 forks source link

Add Discord Integration for Server Notifications #17

Closed Razano26 closed 2 months ago

Razano26 commented 2 months ago

Description:

We need to integrate a Discord bot with the Hardloop Minecraft server to send notifications for key server events. The bot should be able to post messages in a specified Discord channel whenever certain events occur on the server.

Tasks:

  1. Create a Discord bot using the Discord Developer Portal and obtain the bot token.
  2. Set up the bot to join a specified server and post messages in a designated channel.
  3. Implement event listeners on the Minecraft server to trigger Discord notifications. Events to handle include:
    • Server reset.
    • Player death.
    • Player join/leave.
  4. Configure message formats for each event type, ensuring that they are clear and informative.
  5. Add a configuration section in the server's config.yml or values.yaml to specify the Discord bot token, server ID, and channel ID.
  6. Test the integration by simulating events and ensuring that the bot posts the correct messages.

Expected Outcome:

A fully functional Discord bot that automatically posts server event notifications to a designated Discord channel, enhancing community engagement and keeping players informed.