# UFC Strike

{% hint style="info" %}
Before reading below, make sure you have invited the Emerald bot to your Discord server using [this link](https://discord.com/oauth2/authorize?client_id=907407354427998279\&permissions=294473821264\&scope=bot%20applications.commands).
{% endhint %}

## :crossed\_swords:Create a Challenge in Discord

This discord command will let you create your own challenges for your community. You can access a detailed list (discord name + wallet addresses) of those who complete it. And you can automatically run raffles based on who completed the challenge.

### Command

```
/ufcstrike challenge
```

#### Inputs

1. `title`- the title of your challenge
2. `description`- the description of your challenge
3. `set_ids`- a comma-separated list of Set (Edition) IDs that users must own in order to pass the challenge (ex. `300,119,67,299`). *A Set ID is found in the URL of a specific edition. For example, the Set ID of* [*https://ufcstrike.com/v2/edition/300*](https://ufcstrike.com/v2/edition/300) *is 300.*
4. `end_date`- a unix timestamp (represented in seconds) for when your challenge should end (ex. `1694199412`). You can use <https://www.unixtimestamp.com/> to get the unix timestamp.

### Accessing User Completion Data

Once you create the challenge, you can click the "Check Status" button. From here, you can click "View Completers" to get a list of users (their discord names + wallet addresses) who completed the challenge.

The bot automatically re-verifies everyone before placing them on the returned file.

### Running a Raffle

Once you create the challenge, you can click the "Check Status" button. From here, you can click "Raffle Winner" to automatically select 1 user who completed the challenge as the winner. You can run this raffle any amount of times.

The bot automatically re-verifies everyone before selecting a winner.

### Helpful Pictures

<figure><img src="https://2734617986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FogaTXzUJbd9ErdHY45Ri%2Fuploads%2FJbCp7EjHA2DZcXpkUEHU%2FScreen%20Shot%202023-09-26%20at%206.06.39%20PM.png?alt=media&#x26;token=fd3a151e-f662-43ba-9b8b-a09cffecdee0" alt=""><figcaption><p>An example of how you'd create the challenge in Discord</p></figcaption></figure>
