Description
The Discord Timezone Bot is a Python-based bot that allows users to view the current time in three different time zones: USA 🇺🇸, Nigeria 🇳🇬, and India 🇮🇳. The bot creates a category called "Current Time ⌚" and three voice channels within it, each displaying the time for a specific time zone. The displayed time updates automatically every 5 minutes ⏲️.
Features
-
Command to run the Bot:
!timezone
⏰ -
Creates a category: "Current Time ⌚"
-
Creates 3 voice channels: "USA Time 🇺🇸", "Nigeria Time 🇳🇬", "India Time 🇮🇳"
You can edit it according to any timezone
-
Displays the current time for each time zone
-
Updates the displayed time every 5 minutes ⏲️
Prerequisites
Before running the bot, make sure you have the following installed:
-
Python 3.x
-
discord.py library
Installation
-
Clone this repository:
git clone https://github.com/CyberWarrior743/Discord-Time-Bot.git
-
Navigate to the project directory:
cd Discord-Time-Bot
-
Update the
bot.py
file with your Server ID & Discord bot token:guild = bot.get_guild(YOUR_SERVER_ID) # Replace with your Server ID bot.run('YOUR_BOT_TOKEN') # Replace with your Bot Token
Usage
-
Run the bot:
python bot.py
-
Invite the bot to your Discord server using the following link:
https://discord.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&scope=bot
-
Once the bot is in your server, you can use the
!timezone
command to create the "Current Time ⌚" category and the three voice channels with the displayed time for each time zone.
Acknowledgements
-
discord.py - Python library for creating Discord bots.
-
python-dateutil - Python library for parsing and manipulating dates and times.
-
pytz - World timezone definitions for Python.
Contact
For any inquiries or support, please contact bhavyapandy07@gmail.com.