2024-11-20 07:55:44 -05:00
|
|
|
import time
|
2024-11-19 08:18:35 -05:00
|
|
|
import discord
|
|
|
|
import discord.types
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
import os
|
2024-11-20 07:55:44 -05:00
|
|
|
import requests
|
2024-11-19 08:18:35 -05:00
|
|
|
load_dotenv()
|
|
|
|
|
|
|
|
class Client(discord.Client):
|
|
|
|
async def on_ready(self):
|
|
|
|
print("Logged in as", self.user)
|
|
|
|
|
|
|
|
async def on_message(self, message: discord.Message):
|
|
|
|
if message.channel.id not in [1156349646965325824, 1299351968443142228] or message.type != discord.MessageType.auto_moderation_action:
|
|
|
|
return
|
2024-11-20 07:55:44 -05:00
|
|
|
requests.get("https://hlsa.nin0.dev", headers={"Authorization": os.environ["KEY"], "X-Time": str(round(time.time() * 1000))})
|
2024-11-19 08:18:35 -05:00
|
|
|
|
|
|
|
client = Client()
|
|
|
|
client.run(os.environ["TOKEN"])
|