39 lines
923 B
Markdown
39 lines
923 B
Markdown
# Discord Bot Time Converter
|
|
|
|
Simple bot that reads time posted in a channel and converts it to a timestamp in the user's timezone.
|
|
|
|
## Prerequisites
|
|
|
|
Before getting started, make sure you have Python and pip installed on your machine.
|
|
|
|
## Installation
|
|
|
|
1. Clone the repository or download the project files.
|
|
2. Install the required dependencies:
|
|
|
|
```bash
|
|
pip install -r requirements.txt
|
|
```
|
|
|
|
3. Create a `.env` file at the project root and add your Discord token:
|
|
|
|
```text
|
|
DISCORD_TOKEN=your_token_here
|
|
```
|
|
|
|
## Running
|
|
|
|
To run the bot, use the following command:
|
|
|
|
```bash
|
|
python src/bot.py
|
|
```
|
|
|
|
## Usage
|
|
|
|
Once the bot is online, it will listen for messages in the channels it has access to. When a user posts a time, the bot will convert it to a timestamp in the user's timezone and reply with the formatted timestamp.
|
|
|
|
## Help
|
|
|
|
For any questions or issues, feel free to open an issue in the repository.
|