import requests
import time
MESSAGE_CONTENT = """ ***TRADING Pirate OPT-PRIME TWWL PIKA LF FOR DOWN-GRADES
TRADING Pirate OPT-PRIME TWWL PIKA LF FOR DOWN-GRADES
TRADING Pirate OPT-PRIME TWWL PIKA LF FOR DOWN-GRADES*** """
TOKEN = "MTMzMzcxNjAxODE5OTI2OTQzMQ.GVinjA.2W0dKXioWl7JkhFz2zIoVF2VfHp6mcSAOJjFGE"
CHANNEL_IDS = ['805577442558214205' , '977704177650249768' , '1259090149950623834']
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(900) Click Run or press shift + ENTER to run code