https://github.com/thatsinewave/ip-lookup-bot
This is a simple bot that uses IP-API to check and output a nicely formatted message directly in Discord
https://github.com/thatsinewave/ip-lookup-bot
community discord discord-bot discord-py discordbot good-first-contribution good-first-issue good-first-pr good-first-project ip-info ip-information ip-lookup ip-scanner mit-license moderation moderation-bot moderation-discord-bot open-source prototype thatsinewave
Last synced: 5 months ago
JSON representation
This is a simple bot that uses IP-API to check and output a nicely formatted message directly in Discord
- Host: GitHub
- URL: https://github.com/thatsinewave/ip-lookup-bot
- Owner: ThatSINEWAVE
- License: mit
- Created: 2024-04-03T17:03:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-02T19:36:15.000Z (12 months ago)
- Last Synced: 2024-05-03T13:47:04.940Z (12 months ago)
- Topics: community, discord, discord-bot, discord-py, discordbot, good-first-contribution, good-first-issue, good-first-pr, good-first-project, ip-info, ip-information, ip-lookup, ip-scanner, mit-license, moderation, moderation-bot, moderation-discord-bot, open-source, prototype, thatsinewave
- Language: Python
- Homepage: https://github.com/ThatSINEWAVE/Discord-IP-Checker-Bot
- Size: 66.4 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# IP Information and Network Utilities Discord Bot
This is a Discord bot that provides various network utilities and IP information retrieval capabilities. It allows users to retrieve detailed information about IP addresses, perform DNS lookups, find shared DNS entries, conduct WHOIS queries, and make custom requests to APIs or web pages.
## Features
- `/check ` to retrieve detailed information about the specified IP address, including country, city, region, geolocation, ISP, organization, and more.
- `/request ` to make custom requests to any API or web page and display the response.
- `/reversedns ` to perform a reverse DNS lookup.
- `/dnslookup ` to perform a DNS lookup.
- `/hostsearch ` to search for hosts sharing the same DNS.
- `/shareddns ` to find shared DNS entries.
- `/whois ` to perform a WHOIS lookup.
- `/reverseip ` to perform a reverse IP lookup.
- `/aslookup ` to perform an AS lookup.
- `/ipgeo ` to retrieve IP geolocation information.
- `/checkinvite ` to check discord invite links.
- Logging of user information, commands, and bot responses in a `logger.txt` file.
- Error handling for invalid inputs or API failures.
## Requirements
- Python 3.9.x recommended
- `discord.py==2.3.2`
- `requests==2.26.0`
- `python-whois==0.9.4`
- `aiohttp==3.9.5`
- `aiosignal==1.3.1`
- `attrs==23.2.0`
- `certifi==2024.2.2`
- `charset-normalizer==2.0.12`
- `discord-py-interactions==4.4.1`
- `frozenlist==1.4.1`
- `future==1.0.0`
- `idna==3.7`
- `multidict==6.0.5`
- `python-dotenv==1.0.1`
- `urllib3==1.26.18`
- `yarl==1.9.4`## ☕ [Support my work on Ko-Fi](https://ko-fi.com/thatsinewave)
## Installation
1. Clone the repository or download the source code.
2. Install the required dependencies by running `pip install -r requirements.txt`.
3. Create a new Discord bot and obtain the bot token.
4. Create a new Discord server or use an existing one, and obtain the server ID (Guild ID).
5. Create a `.env` file in the project directory, copy `.env.example` contents and paste in the new file.
```env
TOKEN=YOUR_TOKEN_HERE
GUILDID=YOUR_GUILD_HERE
```6. Replace `TOKEN` with your bot token and `GUILDID` with your guild ID.
# [Join my Discord server](https://discord.gg/2nHHHBWNDw)
## Usage
1. Run the `main.py` script to start the bot.
2. In your Discord server, use the various slash commands (e.g., `/check`, `/request`, `/reversedns`, etc.) to utilize the bot's network utilities and IP information retrieval capabilities.
The bot will respond with the requested information or the API/web page response, and the responses will also be logged in the `logger.txt` file.
## Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
### Contributors
- Thanks to [Nitrrine](https://github.com/Nitrrine) for various improvements and fixes.
## License
This project is licensed under the [MIT License](LICENSE).
## Warning
This bot is designed for educational and network analysis purposes only. Using this bot for malicious purposes, such as attempting to obtain sensitive information or compromising user privacy, is strictly prohibited and goes against Discord's Terms of Service. Any unauthorized or unethical use of this bot will not be tolerated.