/discord-invite-ip-logger

Redirect IP logger

Primary LanguagePython

DISCORD INVITE IP LOGGER

Redirect IP logger using flask. Ideally hosted on replit.

Setup

pip install -r requirements.txt

Create a .env file

INVITE_LINK='<server invite>'
WEBHOOK_LINK='<webhook url>'

Flexibility

You can always add an IP lookup service by inheriting from IpLookup and adding lookup_ip function.


i.e

from services.ip_lookup import IpLookup

class YourLookupService(IpLookup):
    def __init__(self, ip_addr):
        self.ip_addr = ip_addr

    def lookup_up(self):
        # do your thing and return an embed field
        pass

then import and add your class to services.