PYTHON ONE WORKIANSDNSSSSS
This commit is contained in:
@@ -3,7 +3,7 @@ from bleak import BleakScanner, BleakError
|
||||
from datetime import datetime
|
||||
import requests
|
||||
|
||||
webhook_url = "https://discord.com/api/webhooks/1403525015818862602/Jh0G0pS9MXzOYRBTmqwH18Qcg0Jg7Ayvw9At3uGe4IauTK1eqRdt8whTXAjvfIDPT9K5" # replace with your actual webhook URL
|
||||
webhook_url = "https://discord.com/api/webhooks/1403525015818862602/frakefakefake" # replace with your actual webhook URL
|
||||
discord_tag_role = "<@&1369280290203373670>" # replace with your actual Discord role ID (.\@rolename to get it)
|
||||
|
||||
# bunch of random prefixes for testing
|
||||
@@ -18,7 +18,7 @@ async def main():
|
||||
devices = await BleakScanner.discover()
|
||||
filtered_devices = [device for device in devices if any(device.address.upper().startswith(prefix) for prefix in VENDOR_PREFIXES)]
|
||||
if filtered_devices:
|
||||
now = datetime.now().strftime("%Z %Y-%m-%d %H:%M:%S.%fF")[:-3] # includes miliseconds
|
||||
now = datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")[:-3] # includes miliseconds
|
||||
webhook_payload = {
|
||||
"content": f"{discord_tag_role} VLAT HAS BEEN SPOTTED MAC: {filtered_devices[0].address} TIME: {now}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user