cmd420 / discord-invite-ip-logger

Redirect IP logger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Redirect IP logger


Languages

Language:Python 100.0%