/discord-timezoneroles-bot

A Discord bot to create timezone roles which updates with current time in that timezone.

Primary LanguagePython

ZoneRoles Bot

Create timezone roles which updates with current time in that timezone. Use this bot to make timezone of a user visible in their profile.

Time will be updated only every 30 minutes due to Discord rate-limiting.

NB: This bot is not publicly hosted. If you would like to use it, please feel free to host it yourself by following the instructions below.

Usage

/create_role timezone - Create a timezone role with given timezone code or the offset

Running the bot

  1. Install dependencies with poetry install

If you're getting errors with distutils package on ubuntu/debian, try this: sudo apt-get install python3.10-distutils

  1. Create a .env file and add your secret token

    BOT_TOKEN="YOUR_TOKEN_HERE"

  2. Run the bot with poetry shell python bot.py

The interactions-tasks repo is copied from https://github.com/Catalyst4222/interactions-tasks