Community Discord Bot

Guide: Adding the "Community Discord Bot" for Managing Roles Based on Rally.io/Creator Coin Holdings

The Community Discord Bot has been deprecated and officially replaced by the Rally Discord Coin Bot.

A bot for managing roles based on Rally.io holdings

Adding the bot to your server

Click this link to add the bot to your server: https://rallybot.app/

Once the bot has been added to your server you need to ensure that it can access and change your roles and channels.

The role for the bot must be above any roles it is meant to manage.

The bot must also have permissions for any private channels it needs to manage.

To set role or channel mappings for the bot to manage you must have the administrator privilege on your server.

Usage

Type $help to see a list of commands:

$get_channel_mappings Returns all the channel mappings currently active for the server

$one_time_channel_mapping <coin name> <coin amount> <channel name>Allows access to a channel for users that currently have the required holding. Will not ever revoke access.

$set_channel_mapping <coin name> <coin amount> <channel name>Set a continuous mapping between channel and currency holdings. Will be updated every ~10 minutes.

$unset_channel_mapping <coin name> <coin amount> <channel name>Unset a continuous mapping.

$set_rally_idSet your rally id with this command

$get_role_mappings Returns all the role mappings currently active for the server

$one_time_role_mapping <coin name> <coin amount> <role name>Allows access to a role for users that currently have the required holding. Will not revoke access.

$set_role_mapping <coin name> <coin amount> <role name>Set a continuous mapping between role and currency holdings. Will be updated every ~10 minutes.

$unset_role_mapping <coin name> <coin amount> <role name>Unset a continuous mapping.

$update Force an immediate update to role and channel mappings

Development

This is a discord bot. To use it you must have a bot set up through the discord developers portal.

Then simply install the requirements and run python rallyrolebot/main.py --secret_token <your_secret_token>

More specifically:

python3 -m venv venv

Linux/MacOS: source venv/bin/activate Windows: .\venv\Scripts\Activate.ps1

pip install -r requirements.txt

python rallyrolebot/main.py --secret_token <your_secret_token>

If you run into a Privileged Intents Error, your bot must have the following options enabled