import requests url = "place you want to send" payload ={ "content" : "content of what you want to send" } headers = { "Authorization" : "token" } res = requests.post(url, payload, headers=headers)
@@edbertjuans2706 import requests k = "number of times you want to send the same message" n = int(k) url = "place you want to send" payload ={ "content" : "content of what you want to send" } headers = { "Authorization" : "token" } for i in range(1,n+1,1): res = requests.post(url, payload, headers=headers)
could you please make a video on how can you incorporate slash (/) commands with this since the message is getting sent but the bot action is not being taken
Hey! This is an awesome video But I put the code in a for loop like this - for i in range(12550, 13000): payload = { "content" : str(i) } res = requests.post(url, payload, headers=headers) sleep(1) And every 5th message is not being sent. Can someone please explain why?
Does this work even if you close the discord app? Like if i just wanted to send a message but my client wasn't opened, not only minimized but completely exited
add import random to the top headers = { "Authorization" : ["token 1, token 2, token 3"] } while(True): res = requests.post(url, payload, headers=random.choice(headers)) and this
i understand slash commands are harder. but nobody will elaborate on the code requirements to run it. i clearly can already send a message, so why not explain/show how to run slash commands with this system? even if someone has a link to an explanation, id take it....
you could import the time module and write a "while True" loop where the content is sent and then the program does "time.sleep(120)" before reiterating the loop, until the user enters some keyword like "exit" to break the loop
you could import the time module and write a "while True" loop where the content is sent and then the program does "time.sleep(300)" before reiterating the loop, until the user enters some keyword like "exit" to break the loop
import requests
url = "place you want to send"
payload ={
"content" : "content of what you want to send"
}
headers = {
"Authorization" : "token"
}
res = requests.post(url, payload, headers=headers)
Tip: you can leave one line and paste it again to add two messages
Tip2: if you want to spam just use auto clicker on run button
@@SansUndertale-vg4jp you can use a loop if you want to spam
@@ShivanshTiwari-mp6fp how
@@edbertjuans2706
import requests
k = "number of times you want to send the same message"
n = int(k)
url = "place you want to send"
payload ={
"content" : "content of what you want to send"
}
headers = {
"Authorization" : "token"
}
for i in range(1,n+1,1):
res = requests.post(url, payload, headers=headers)
@@edbertjuans2706 for i in range(1000):
you are a saver. Your tutorial is straight to the point. You are really doing an amazing job.
This is exactly what I needed! Thank you!
could you please make a video on how can you incorporate slash (/) commands with this since the message is getting sent but the bot action is not being taken
how can you incorporate slash (/) commands with this since the message is getting sent but the bot action is not being taken
My code does not work at line 1 "import requests". I'm assuming I do not have the requests stuff to import, how can I fix this
You need to install requests library
Type this command in terminal : pip install requests
Or this one pip3 install requests
still doesnt work@@thecodebear
Hey!
This is an awesome video
But I put the code in a for loop like this -
for i in range(12550, 13000):
payload = {
"content" : str(i)
}
res = requests.post(url, payload, headers=headers)
sleep(1)
And every 5th message is not being sent.
Can someone please explain why?
thx man i just made the infinite pinging script :)
how?
F
Thank you for this. Is there any way to do delete messages?
Does this work even if you close the discord app? Like if i just wanted to send a message but my client wasn't opened, not only minimized but completely exited
Yes it does work without having discord open
Can we use slash commands with this?
Hi, great tutorial, only when I try it, it is saying that there is "No module named 'requests' "
Run this command in terminal : pip install requests
Or : pip3 install requests
@@thecodebear thank you so much! that really helped, keep up the amazing work!
very good tutorial, but how do i use more tokens to send messages
yes
add import random to the top
headers = {
"Authorization" : ["token 1, token 2, token 3"]
}
while(True):
res = requests.post(url, payload, headers=random.choice(headers))
and this
What about reading messages in a channel?
THAAAANKS!!!
hi, this can be programmed to send the message every 8 hours or so?
brooo thxx a lot
how do you send slash commands with python requests
That is a bit complicated
@@thecodebear can you do a video on it🙏🙏🙏
do you need to go into developer mode
Yes
This action cannot be performed due to slowmode rate limit
How do i do this with my own bots
I'm getting unauthorized response
Why does it tell me No module named 'requests'
You need to install requests libarary
@@thecodebear Thank you i got it now :)
Is there a way to automate, so the message is sent e.g. every 15 minutes?
i understand slash commands are harder. but nobody will elaborate on the code requirements to run it. i clearly can already send a message, so why not explain/show how to run slash commands with this system?
even if someone has a link to an explanation, id take it....
how to make it so it auto sends every 2mins
you could import the time module and write a "while True" loop where the content is sent and then the program does "time.sleep(120)" before reiterating the loop, until the user enters some keyword like "exit" to break the loop
How if I change authorization of many accounts 😂?
Does Discord ban users for doing this?
hello
will this flag my account as bot ?
no. Simplemente es la forma de enviar mensajes en discord desde python
I want to send message every 5minute in a discord server
you could import the time module and write a "while True" loop where the content is sent and then the program does "time.sleep(300)" before reiterating the loop, until the user enters some keyword like "exit" to break the loop
how can you incorporate slash (/) commands with this since the message is getting sent but the bot action is not being taken
lol i got the same issue
how to make it so it auto sends every 2mins