import requests
import time
MESSAGE_CONTENT = """ **```diff
▀█▀ █▀█ ▄▀█ █▀▄ █ █▄░█ █▀▀
░█░ █▀▄ █▀█ █▄▀ █ █░▀█ █▄█
- Secret unit all shiny:
+ Homura
+ blue-devil
+ LF UPGRADE OR OFFER (I DONT OFFER)
+ ALUCARD UNEVO
```** """
TOKEN = "MTMzMzcxNjI0NzA1MjgxMjMwMA.GUzJbg.Im8xDeTKRU5bbG9CrH4Zsur1-L1iY1cFzlS-gI"
CHANNEL_IDS = ['1321374693332094996' , '1321374726295130215' , '1321374748374077491' , '1028471658530492526' , '1055327730759114822' , '1119521989145669632']
url = 'https://discord.com/api/v9'
headers = {
'authorization': f'{TOKEN}',
'content-type': 'application/json'
}
while True:
for channel_id in CHANNEL_IDS:
# Construct the API endpoint URL for the current channel
channel_url = f'{url}/channels/{channel_id}/messages'
# Set the request body
data = {
'content': MESSAGE_CONTENT
}
# Send the request
response = requests.post(channel_url, headers=headers, json=data)
# Check if the message was sent successfully
if response.status_code == 200:
print(f'Message sent successfully to channel {channel_id}!')
else:
print(f'Failed to send message to channel {channel_id}: {response.content}')
# Wait for 1 hour before sending the next message
time.sleep(1200)
Click Run or press shift + ENTER to run code