---
# System prepended metadata

title: Token Gating a Channel with ModBot
tags: [farcastle]

---

# Token Gating a Channel with ModBot

This guide will walk you through setting up a token gating on your Warpcast channel.
![Screenshot from 2024-11-03 10-32-36](https://hackmd.io/_uploads/HJ6AXVHZ1x.png)

## Pre-reqs
- DAO Token exists. We'll use a moloch v3 token in this example.
- Channel exists and you are the owner of the channel.

## Links
[ModBot](https://modbot.sh/)

## How To

**1. Create an account on ModBot **

Connect to the app with the wallet that owns the channel. Select the channel you want to token gate and start a 'Custom' configuration.

![Screenshot from 2024-11-01 14-24-29](https://hackmd.io/_uploads/HyCWF2MW1x.png)

![Screenshot from 2024-11-01 14-24-56](https://hackmd.io/_uploads/BJPQY3fbyl.png)

**2. Add ModBot as a moderator of the channel**

![Screenshot from 2024-11-01 14-25-18](https://hackmd.io/_uploads/Hy1HFhzWye.png)

![Screenshot from 2024-11-01 14-25-38](https://hackmd.io/_uploads/rkOIt3GZJg.png)

![Screenshot from 2024-11-01 14-26-30](https://hackmd.io/_uploads/Bys9t2G-yg.png)

**3. Set up you rmembership rules.** 

There are a few options, for moloch v3 gating we'll use the 'Holds ERC-20' rule.

- Select the chain the token is on
- Paste in the token address
    - Moloch DAO token addresses can be found on the setting page of in the [dao admin app](https://admin.daohaus.club/#/molochv3/0xa/0x2a244bb4ccd4eb0897cf61e0c61963e1e1d161e3/settings)
- Set a desired miniumum balance

![Screenshot from 2024-11-01 14-29-46](https://hackmd.io/_uploads/ByfIchf-Jl.png)

![Screenshot from 2024-11-01 14-31-53](https://hackmd.io/_uploads/Skw1jhGZke.png)

**4. Set up the invite frame**

- You can set a background color.
- Cast the frame and pin it to the channel for easy access

![Screenshot from 2024-11-01 14-34-09](https://hackmd.io/_uploads/ryHIs3GWyg.png)

![Screenshot from 2024-11-01 14-33-53](https://hackmd.io/_uploads/rkSLs3z-1g.png)

![Screenshot from 2024-11-01 14-46-47](https://hackmd.io/_uploads/S1oHCnM-Je.png)
