# Get started

Source: https://righteousbot.dev/docs/getting-started/introduction/

Get your server access, invite Righteous, run first setup and open the config panel.

Righteous is a general-purpose Discord bot: protection, moderation, logging, tickets, voice, music and Last.fm, configured from one panel. Do these in order.

## Get access for your server [#get-access-for-your-server]

Righteous isn't open to every server. With no access the bot joins, then **leaves within seconds** and the owner gets a DM (never delivered if their DMs are closed). If it stays but answers **Server not whitelisted**, it is the same problem: ask in the support server. Re-inviting changes nothing.

| On join                            | What you see                                            |
| ---------------------------------- | ------------------------------------------------------- |
| Has access, or a promotion applies | The bot stays                                           |
| No access                          | The bot leaves                                          |
| Couldn't tell                      | The bot stays and does nothing, because a lookup failed |

Access can lapse: a one-time purchase never expires, a subscription lasts while it does, and a trial ends on its date. The owner is DMed when the bot joins on a trial, a day before it ends, and when the bot leaves. A server that has had a trial before usually won't get a promotion's trial again. Your settings, roles and channels are kept, so renewing and re-inviting restores everything.

To get it, join the support server and run [`,donate`](/commands/links/donate/#donate). **Buy the bot** is the one that gets Righteous into a server. It asks for a **Server ID or invite**: check it, because that is the server the access attaches to. Pay, then invite. A code does the same without paying:

<CommandBlock syntax=",redeem <code>" example=",redeem RGHT-XXXX-XXXX" />

[`,redeem`](/commands/premium/redeem/#redeem) deletes your message. Some codes grant a premium tier and some grant access to one server, so read what it says. Access is not premium: it unlocks no features. See [Premium](/docs/getting-started/premium-tiers/).

## Invite the bot [#invite-the-bot]

Run [`,inviteme`](/commands/links/inviteme/#inviteme) in any server that has Righteous, or take the link from the [support server](https://discord.gg/MubvsbMbZQ). You need **Manage Server** in the target server. [Get access](#get-access-for-your-server) first: the bot leaves a server that has none.

<CommandBlock syntax=",inviteme" />

<Callout type="warn" title="Authorize both scopes: bot and applications.commands">
  Without `applications.commands` the bot joins and prefix commands work, but `/` shows nothing from Righteous. There is no in-server fix: authorize the invite again.
</Callout>

**Keep Administrator ticked.** Trimming it means finding what you removed one broken command at a time. If you must, these needs are easy to miss:

| Feature                                                           | Needs                                   | Without it                                 |
| ----------------------------------------------------------------- | --------------------------------------- | ------------------------------------------ |
| [`,antinuke`](/commands/server-tools/antinuke/#antinuke)          | **View Audit Log**                      | Detection never fires, with no error       |
| [`,setup`](/commands/server-tools/setup/#setup)                   | **Administrator**                       | Refuses to run                             |
| [`,voicemaster`](/commands/server-tools/voicemaster/#voicemaster) | **Manage Channels**, **Manage Roles**   | Temporary channels are missing or broken   |
| [`,autorole`](/commands/server-tools/autorole/#autorole)          | **Manage Roles**                        | No roles on join                           |
| [`,log`](/commands/server-tools/log/#log)                         | **View Audit Log**, **Manage Webhooks** | "Executor unknown", or no webhook delivery |

**Or install it to yourself.** **Add to My Apps** on `,inviteme` (or **Add App** on the bot's profile) gives you
its commands in any server and in DMs, with no Manage Server or access needed. Only you can use them, and anything
that needs the bot *in* the server (moderation, anti-nuke, logging, feeds, welcome messages, voice) won't work.

**Move its role up.** In **Server Settings → Roles**, drag **Righteous** above every role it moves, hands out or mutes (members you moderate, autoroles, `Muted`, `jailed`).

**Confirm it landed.** Run `/help`, which works under any prefix. Then try [`,help`](/commands/info/help/#help&#x29;. Forgot the prefix? Mention **@Righteous** on its own and it replies with it.

## Run first setup [#run-first-setup]

[`,setup`](/commands/server-tools/setup/#setup) and [`,config`](/commands/server-tools/config/#config) need **Administrator**, on you and on the bot.

<CommandBlock syntax=",setup" />

A picker lists the `Muted` role, the `jailed` role with `#jailchat`, `#welcome`, `#starboard` and a log channel per category. Missing items are pre-selected: press **Run Setup**. Rerunning repairs rather than duplicates, and a failure is usually a missing Manage Roles or Manage Channels. `/setup run` is private to you; `,setup` posts the card in the channel.

[`,setup preview`](/commands/server-tools/setup/#setup-preview) changes nothing, [`,setup all`](/commands/server-tools/setup/#setup-all) skips the picker, and [`,setup update`](/commands/server-tools/setup/#setup-update) applies the mute and jail overwrites to channels made since.

Then change the prefix if you want to ([`,prefix set <prefix>`](/commands/server-tools/prefix/#prefix-set)).

## Set up your server [#set-up-your-server]

Most servers set up the same few things. Start with protection and roles, then add the rest as you need it:

| Want                                                                            | Start with                                                                                                                                                                                                                          |
| ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Protection](/docs/protection/antinuke/)                                        | [`,antinuke`](/commands/server-tools/antinuke/#antinuke) (server owner), [`,antiraid`](/commands/server-tools/antiraid/#antiraid), [`,trap`](/commands/server-tools/trap/#trap), [`,filter`](/commands/server-tools/filter/#filter) |
| [Welcome and goodbye messages](/docs/features/server-messages/)                 | [`,welcomemessage`](/commands/server-tools/welcomemessage/#welcomemessage)                                                                                                                                                          |
| [Roles on join, and a verify button](/docs/features/autorole-and-verification/) | [`,autorole`](/commands/server-tools/autorole/#autorole), [`,verification`](/commands/server-tools/verification/#verification)                                                                                                      |
| [Roles members pick with a reaction](/docs/features/reaction-roles/)            | [`,reactionrole`](/commands/server-tools/reactionrole/#reactionrole)                                                                                                                                                                |
| [Staff roles](/docs/features/staff-roles/)                                      | [`,staff`](/commands/server-tools/staff/#staff) (server owner)                                                                                                                                                                      |
| [Logs](/docs/features/logging/)                                                 | [`,log`](/commands/server-tools/log/#log)                                                                                                                                                                                           |
| [Support tickets](/docs/features/tickets/)                                      | [`,ticket`](/commands/server-tools/ticket/#ticket)                                                                                                                                                                                  |
| [Member and boost counters](/docs/features/server-stats/)                       | [`,serverstats`](/commands/server-tools/serverstats/#serverstats)                                                                                                                                                                   |
| [A starboard](/docs/features/starboard/)                                        | [`,starboard`](/commands/server-tools/starboard/#starboard)                                                                                                                                                                         |
| [Levels and XP](/docs/features/leveling/)                                       | [`,levels`](/commands/levels/levels/#levels)                                                                                                                                                                                        |
| [A message kept at the bottom of a channel](/docs/features/sticky-messages/)    | [`,stickymessage`](/commands/server-tools/stickymessage/#stickymessage) (**Server Premium**)                                                                                                                                        |
| [Timed messages](/docs/features/auto-messages/)                                 | [`,automessage`](/commands/server-tools/automessage/#automessage) (**Server Premium**)                                                                                                                                              |
| [Reactions on trigger words](/docs/features/auto-react/)                        | [`,react`](/commands/server-tools/react/#react) (**Server Premium**)                                                                                                                                                                |
| [Giveaways](/docs/features/giveaways/)                                          | [`,giveaway`](/commands/server-tools/giveaway/#giveaway)                                                                                                                                                                            |
| [Temporary voice channels](/docs/features/voicemaster/)                         | [`,voicemaster`](/commands/server-tools/voicemaster/#voicemaster)                                                                                                                                                                   |
| [Last.fm](/docs/lastfm/overview/)                                               | [`,lastfm set`](/commands/lastfm/lastfm/#lastfm-set)                                                                                                                                                                                |

## Open the config panel [#open-the-config-panel]

[`,config`](/commands/server-tools/config/#config) (also `,settings`) opens it, or [`/config panel`](/commands/server-tools/config/#config-panel). The dropdown at the bottom moves between pages.

<CommandBlock syntax=",config" />

The panel is a normal message, so open it somewhere staff-only. Permissions are checked on each click, and a refusal is private and names what was missing. Administrator gets you in, not everything:

| Gate                        | Where                                                          |
| --------------------------- | -------------------------------------------------------------- |
| A Discord permission        | Most role and channel selects                                  |
| Server owner only           | Anti-Join, the Protection Log, every Antinuke rule (marked 👑) |
| Server Premium              | Booster colors, status roles, server-wide Last.fm              |
| Server Premium to switch on | 24/7 on Music. Switching off is free                           |

**Deselect a dropdown to clear it.** There is no "None" option, and it saves immediately. The Autorole picker and the Last.fm blacklist picker only add: use the Autorole removal dropdown or [`,lastfm blacklist remove`](/commands/lastfm/lastfm/#lastfm-blacklist). A setting that shows "Deleted and ignored" points at something you deleted: pick a new one.

To set one field without the panel:

<CommandBlock syntax=",config logchannel <channel>" example=",config logchannel #mod-logs" />

The same shape sets [`muterole`](/commands/server-tools/config/#config-muterole), [`jailrole`](/commands/server-tools/config/#config-jailrole), [`jailchannel`](/commands/server-tools/config/#config-jailchannel) and [`welcomechannel`](/commands/server-tools/config/#config-welcomechannel).

## Common issues [#common-issues]

**A command won't act on a role or member.** That target sits above the bot's role. Move it up.

**The bot is silent in one channel.** Without Administrator, check its View Channel and Send Messages there.

**You have Administrator and a control refused you.** It is owner-only or needs Server Premium.

**An old panel opens the wrong page.** Run [`,config`](/commands/server-tools/config/#config) again.
