> For the complete documentation index, see [llms.txt](https://aviddot-2-0.gitbook.io/aviddot-2.0-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aviddot-2-0.gitbook.io/aviddot-2.0-guide/overview/how-to-setup-the-bot.md).

# How to setup the bot

Instructions to setup the bot

Download the bot and configuration files (configfile.json and dex.json)

## WINDOWS

[Setup the configfile](#setup-the-config-file)

Files must be all in the same folder

## MAC

Download bot files and unzip them in a folder

[Setup the configfile](#setup-the-config-file) and optionally, the dex.json file (more details in the [specified section](/aviddot-2.0-guide/overview/add-dex-coins-or-rpc.md))

Now copy the dex.json, configfile.json and tokenbuy.py files and paste them into the home folder of your user

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2FbVzWp0p3fyznCPG1vN29%2FScreenshot%202023-04-27%20at%2020.33.39.png?alt=media&amp;token=8f4bbea6-f1f5-4403-bda1-0cc862f18cf6" alt=""><figcaption><p>Home folders on MAC</p></figcaption></figure>

## LINUX

Download the bot on any folder

[Setup the configfile](#setup-the-config-file)

Files must be all in the same folder

Make the file executable following below screen

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2FZ3pkMytX3QGuYFAg6lEI%2Fright_click.png?alt=media&amp;token=c4dd95d2-dec2-48fb-9665-b8cfad35b38b" alt=""><figcaption><p>Right click on the Sniperbot file</p></figcaption></figure>

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2FdMq3Q0GaaLWZZD1RbUYf%2Fexecutable.png?alt=media&amp;token=7beeee84-5509-405f-a1f6-f609fa984f1f" alt=""><figcaption><p>Make it executable</p></figcaption></figure>

## Setup the config file

Open the configfile.json with a text editor (I suggest visual studio code or a normal text editor is okay too) and go to the bottom of the file

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2FvcdOvH4VuORpkkkBHayd%2Fsetup_configfile.png?alt=media&amp;token=05676e58-9ca9-4e30-b5c6-0fbe085c4aad" alt=""><figcaption><p>Bottom of the configfile.json</p></figcaption></figure>

This is an array of wallets.

The first one must be the one that hold our token AVID2.0 ("Public", "private")

{% hint style="warning" %}
No comma have to be after the latest brackets
{% endhint %}

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2Fo3puVQqYPMl2DzZJ9TWw%2Fwrong_configfile.png?alt=media&amp;token=46123c16-c2e6-4666-980b-db3b98ffa0ca" alt=""><figcaption><p>WRONG CONFIGFILE</p></figcaption></figure>

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2FGMog2GoN4f6e4E2arnyn%2Fok_configfile.png?alt=media&amp;token=69afab8e-df79-42d8-ba90-92c81d298e13" alt=""><figcaption><p>OK CONFIGFILE</p></figcaption></figure>

Replace PUBLIC with your public key and PRIVATE with your private key.

{% hint style="warning" %}
PAY ATTENTION\
Do not leave uncopiled wallets or the bot will not start.&#x20;

Example:

\[\
&#x20;       "YOUR\_WALLET\_ADDRESS",&#x20;

&#x20;       "YOUR\_PRIVATE\_KEY"

],\
**\[**\
&#x20;       **"public",**&#x20;

&#x20;       **"private"**

**]**
{% endhint %}

| Extract the private key from metamask                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |                                                                                                                                                                                                                                             Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| <p></p><ol><li>Click on the identicon in the top right.</li><li>Select the account you'd like to export.</li><li>On the account page, click on the menu (three dots) in the upper right corner, and then on the "Account Details" button.</li><li>Click “Export Private Key”.</li><li>To access your private key, you'll now need to enter your wallet password. Once you've done so, click “Confirm” to proceed.</li><li>Your private key will now be revealed. Click to copy it, and save it somewhere safe. (Note: we aren't showing it in the below screenshot for obvious reasons -- but yours will be there.)</li><li>Click “Done” to close the screen.</li></ol> | ![](https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2FH6qQadiEFQ9P5ho7L9Eq%2FHow_to_export_an_account's_private_key.gif?alt=media\&token=ed98e709-ea3e-4c21-8845-047aa970c0ea) |

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2FffJzx7bWWDy3jUPUNIrO%2Fwalletsfilled.png?alt=media&amp;token=06b87394-5506-4ca2-a676-22f193461889" alt=""><figcaption><p>3 wallets</p></figcaption></figure>

If you want to add one wallet only, just delete others lines

Remember that the first wallet must be the holder of the AVID2.0 Token

<figure><img src="https://551507561-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFijxcld5rWpFzWZOsEc%2Fuploads%2FfEE1ZCU0Ky7lxlIpMrZE%2Fonewalletsfilled.png?alt=media&amp;token=1ec97070-85ed-47a2-9ef0-e203198768f9" alt=""><figcaption><p>one wallet only</p></figcaption></figure>

Save the file and close it.

Dex file is provided with 20 different dexes so is ready to use.

To check how to add a DEX click [HERE](/aviddot-2.0-guide/overview/add-dex-coins-or-rpc.md#dex)

To check how to add a TOKEN click [HERE](/aviddot-2.0-guide/overview/add-dex-coins-or-rpc.md#coin)

Run the bot with a double click on the executable file
