# Setup Bolt

{% hint style="warning" %}
You need **Administrator** permissions for most commands. However, it is not required for [language setting](#language).
{% endhint %}

## Actionlogs

The action log feature will log nearly **all actions** that take place in the server into a channel. Use the command below to set these logs up.

```
setaction [#channel]
```

## Auto Nickname

In french : Surnoms automatiques.

The auto nickname system is based on the dehoist command. It verifies the username of all new members. If it includes a special character at the beginning, Bolt set a `Dehoist!` nickname for the user. The same goes for users that put an invite link in their username.

List of characters triggering Auto Nickname : \[`'`, `&`, `xX`, `?`, `!`, `[ ]`, `( )`, `"`, `,`, `\`, `/`, `.` and `xx`]. `discord.gg` is also a trigger.

{% hint style="info" %}
Be sure Bolt has Manage Nicknames permissions and its role to be above Members role.
{% endhint %}

Now you've learnt everything about Auto Nickname, use this command to set it up.

```
setdehoist [true/on/false/off]
```

![Here is what the member join log looks like. The Auto Nickname is turned off.](https://882532783-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8GMHH6pVeTFfxrvxC8%2F-M8fa3bFmDCEErUWGRsJ%2F-M8feIZnmBpueL16td3r%2FCapture.PNG?alt=media\&token=96b0b5cc-70fd-4a2d-ac0d-b24a5993eca3)

## Language

The default language is **French**. Not everyone speak french. As of now, there are 2 languages : English (UK) and French (France).

* `setlang en` to set the bot language to english.
* `setlang fr` to set the bot language to baguette.

{% hint style="info" %}
You do not need Administrator permission.
{% endhint %}

## Moderation logs

Also known as modlogs, a log will be created in the channel whenever a new moderation action takes place. It can be any of the command under "Moderation" tab.

{% content-ref url="commands/commands-index" %}
[commands-index](https://boltcord.gitbook.io/bolt/commands/commands-index)
{% endcontent-ref %}

```
setmodlog [#channel]
```

## Prefix

Do you want to change the prefix of the bot? Do you have more than 1 bot using the default `b!` prefix? **Let's change it!**

Don't select a difficult prefix too, it must be simple and memorable.

```
setprefix [prefix]
```

## Rank announcement

Bolt announces the "You reached a new level!" text by default. If you don't want these messages, simply disable them. It will not disable the level system for your server, only the new level announcements.

Use `true` to enable them, `false`to disable them. *Easy, eh?*

```
setrankup [false/true]
```

## Welcome messages

Say hello to new users in an automated way. Say hello the Bolt way.

```
setwelcome [channel]
```

{% hint style="info" %}
If you have an action log set up, the member joins event will be logged in that channel.
{% endhint %}

Did you know Bolt can send random welcome messages? When a member joins, the bolt will say different things if you enable this feature.

```
setrandomwcm [true/false]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://boltcord.gitbook.io/bolt/setup-bolt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
