https://github.com/wptk/callsign-discord-bot
Search military and civil callsigns.
https://github.com/wptk/callsign-discord-bot
avgeek aviation-data callsign-data-lookup callsigns discord-bot excelreader
Last synced: about 1 month ago
JSON representation
Search military and civil callsigns.
- Host: GitHub
- URL: https://github.com/wptk/callsign-discord-bot
- Owner: WPTK
- License: unlicense
- Created: 2024-08-02T01:22:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-04T01:52:22.000Z (12 months ago)
- Last Synced: 2025-10-25T19:53:55.310Z (7 months ago)
- Topics: avgeek, aviation-data, callsign-data-lookup, callsigns, discord-bot, excelreader
- Language: Python
- Homepage:
- Size: 752 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Callsign-Discord-Bot
Search military and civil callsigns.
WIP/Concept

# Callsign Discord Bot
The Callsign Discord Bot is a Python-based bot that interacts with users on a Discord server to fetch and display information from an Excel spreadsheet. The bot responds to the `!callsign` command, searches the provided Excel file for the specified keyword, and returns the relevant data in a formatted response.
## Features
- Responds to the `!callsign` command.
- Searches for exact and non-exact matches in the specified columns of the Excel file.
- Returns formatted results with bold titles and country flags.
- Handles multiple exact matches by displaying only one result.
- Displays multiple non-exact matches if no exact duplicates are found.
## Prerequisites
- Python 3.x
- Discord bot token
- Required Python libraries: `discord.py`, `pandas`, `openpyxl`
## Setup
### 1. Create a Discord Bot
1. Go to the [Discord Developer Portal](https://discord.com/developers/applications).
2. Click on "New Application" and give it a name.
3. Under the "Bot" tab, click "Add Bot" to create a bot user.
4. Copy the bot token. You will need this to run the bot.
### 2. Clone the Repository
`git clone https://github.com/yourusername/callsign-discord-bot.git
cd callsign-discord-bot`
### 3. Fire it up
Install the dependencies using `pip`:
```bash
pip install -r requirements.txt
```
Ensure `Callsigns.xlsx` is located in the same directory as `callsign.py`.
Set your Discord bot token in the `DISCORD_TOKEN` environment variable and run:
```bash
python callsign.py
```
You should be up and running!