> ## Documentation Index
> Fetch the complete documentation index at: https://docs.melonly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Discord Bot

> Add the Melonly bot to your Discord server, link it to Melonly and use its slash commands.

***

## What is the Melonly Bot?

The Melonly bot connects your Discord server to your Melonly server or department. Once linked, staff can log punishments, manage shifts and run ER:LC commands from Discord, and Melonly can sync roles and post to your channels.

***

## Setting Up the Bot

<Steps>
  <Step title="Invite the bot">
    Add Melonly to your Discord server with the [invite link](https://melonly.xyz/bot).
  </Step>

  <Step title="Run /setup">
    Run `/setup` in your Discord server and pick the Melonly server or department to link. If you don't have one yet, choose **Create new**. You need the Administrator permission in the Discord server.
  </Step>

  <Step title="Set up the integration">
    Choose your channels, role syncing and verification on the dashboard. See [Discord Integration](/Dashboard/discordintegration/home).
  </Step>
</Steps>

To unlink later, run `/unlink`. Only the owner of the Discord server can do this.

***

## Commands

Run `/help` in Discord at any time for a quick overview. Most commands need the matching permission in your Melonly roles.

<AccordionGroup>
  <Accordion title="General">
    | Command | What it does |
    | - | - |
    | `/help` | Get help using Melonly. |
    | `/mod-panel` | Get the link to your server's Mod Panel. |
    | `/dashboard` | Get the link to your server's dashboard. |
    | `/setup` | Link this Discord server to a Melonly server or department. |
    | `/unlink` | Unlink this Discord server. |
    | `/ping` | Check the bot is responding. |
    | `/my account` | See your Melonly account and linked Roblox account. |
    | `/getinfo` | Look up a Roblox or Discord user. With no options, shows your own Roblox info. |
  </Accordion>

  <Accordion title="Moderation">
    | Command | What it does |
    | - | - |
    | `/logs create` | Create a log for a player. Adding a description needs [Melonly Plus](https://melonly.xyz/plus). |
    | `/logs view` | See a player's logs by Roblox username or linked Discord user. |
    | `/modstats` | See a member's moderation stats, overall or average, for any wave. |
    | `/audit-logs` | View your server's audit logs, filtered by type. |
    | `/actions history` | See actions that have already run. |
    | `/requeststaff` | Ask for more staff to join the server. Messaging off-duty staff in game needs Plus. |
  </Accordion>

  <Accordion title="Shifts, Sessions and LOA">
    | Command | What it does |
    | - | - |
    | `/shift manage` | Start or end your shift. |
    | `/shift online` | See who's on shift right now. |
    | `/shift leaderboard` | See the activity leaderboard, by wave and shift type. |
    | `/sessions manage` | Manage your server session. |
    | `/loa view` | See all active leaves of absence. |
  </Accordion>

  <Accordion title="ER:LC">
    | Command | What it does |
    | - | - |
    | `/erlc command` | Run a command in your ER:LC server. |
    | `/erlc info` | See your linked ER:LC server's details. |
    | `/erlc player` | Get information about a player. |
    | `/erlc membercheck` | Run a member check. |
    | `/erlc vehiclecheck` | Run a vehicle check. |
    | `/erlc logs` | View ER:LC logs, filtered by player, type or time. |
    | `/erlc refreshme` | Refresh your character in game. |
  </Accordion>

  <Accordion title="Playtime">
    | Command | What it does |
    | - | - |
    | `/playtime leaderboard` | See the playtime leaderboard. |
    | `/playtime me` | See your playtime stats, or someone else's. |
    | `/playtime rewards` | See every playtime reward level and its perks. |
  </Accordion>

  <Accordion title="Verification and Roles">
    | Command | What it does |
    | - | - |
    | `/verify` | Verify your Roblox account in this server. Admins can verify someone else. |
    | `/reverify` | Re-verify or relink your Roblox account. |
    | `/unverify` | Remove your verification. Admins can unverify someone else. |
    | `/sync` | Sync your roles across all linked Discord role links. |
  </Accordion>
</AccordionGroup>

ER:LC commands need the [ER:LC integration](/Dashboard/erlcintegration/home) set up, and playtime commands need [playtime levels](/Dashboard/erlcintegration/playtimelevels/playtimelevels) turned on.

***

<Card title="Need help?" icon="headset" href="https://melonly.xyz/discord">
  Still have questions? Join our Discord server for support from the Melonly Team.
</Card>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.