Helo guys, im making a discord bot that if a guy calls it it joins and starts recording the convo, (for sluring etc) Basicaly, i don't know how do i post requests so he joins a chanel... I tries ctrl +shift + i but it does not say the request that JOINS the voice chanel, like how do i make the bot join the voice chanel with requests?
#π Specific help, can't post the request
161 messages Β· Page 1 of 1 (latest)
@oblique seal
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
tried this code: ```py
import requests
TOKEN = "MTE5NT(not full)"
header = {
'authorization': TOKEN
}
channel_id = "1275356223650402364" # Replace with the ID of the voice channel you want to join
guild_id = "1275355835622490122" # Replace with the ID of the guild the voice channel is in
url = f"https://discord.com/api/v9/guilds/{guild_id}/voice-states/@me"
payload = {
"channel_id": channel_id
}
r = requests.post(url, headers=header, json=payload)
print(r.status_code)``` got 404. tried patch and tried post
You should really look at Discord.py
wdym
!pip discord.py
It might not have the functionality your looking for though
and didint find a tut on yt
Hm
idk how do i send the request to join
like theres nothing when i try to join
in comand promt
u can't do it with http requests alone
i suggest you use a library like discord.py with voice support
I love discord.py lol
welp shit
discord.py and tkinter gotta be one of the easiest things to learn
Well you can exactly stream audio from Discord.py
You can record
i lied the hole time i dont need for my bot, im making so i can afk vc playtime
You can record 10 seconds of the voice channel check that then move onto the next
i need 400h afk vc time
or normal vc
and im not geting it normaly
Wym
So just join vc withiut a bot
like afk voice chat
oh is this a selfbot
yea it sounds like a selfbot from what ur saying
Im not understandin wtf bro trynna do
where does the code run on
U can still get the hours if u join vc
your account or a bot account
wdym
"Replit bro"
bot
i meant what account
????
why would u wanna farm vc playtime on a bot account π
bro i cant grind 400hours to my bot
its on a furry server, and i sell, at 400h u have image perms and tons of shit
Oh u want it to just join vc when someone else joins?
i run a bot on the server
is it a bot account or a user account
Idk
Does the account have the "BOT" label on it
no
yes
Bro this is megamind bigbrain cap
verified bot
this is very sus
and how tf u plannin to sell a bot's permissions to a normal user
fr
i sell the bot
Buddy jsut say its a selfbot and we might help u
bro thats not how it works
@frigid sapphire this kid deadass trynna convince me he invited a bot into a server he dont manage
lmao yea
i manage
The bot doesnt havr image perms out of all the other permissions
what
bruh
And he also wants to sell it after 400h vc
i cant say
@frigid sapphire help me rq
furry
Tf
why would anyone want to buy a bot from an admin
and AS I SAID HE GRINDS HOURS, AND CALCULATES THE RAID PERSENTAGE
in vc
its a hard process
i dont get what the raid percentage part has to do with anything
bruh .1 user says !raid in chat bot comes, record 5min. takes output to ai. ai says if its a raid. if its a raid then after 1 month of cacl says how many raid and what to do
just get an anti-raid bot, what
what
pls help with my ticket if u can once ur done
Bro what
How tf u want people to raid ur server by talking in vc
who raids a vc alone
just say how i send responts
??????
whiteboard activitiys
people raid vcs with harastment
sexual
or gay as camera
then get moderators
Bro watched the wrong busienss motivation videos
ur trynna splve a problem thats irrelevant aaf bro
but it can be done with a bot
it can be, but it shouldn't be
just like how you can detect bad words with a bot, but a bypass always exists
bro, i scrape porn out of redit, and when a guy says !money a image appears fresh one.
ik what i doing
that's the job of a bot
yes
.
then ban the people raiding??
this is such a dumb issue hes trynna solve
FUCK YALL
Like bro not everyone joins vc and starts showing noods
- thats a job of a moderatoe
bro the server has 160k members
other ppl in the vc will report bro to u and u punish them
and the mods get abt 50 requests vcs
then scale up, hire more moderators
its better to bit
ur nto supposed to collect a p1rn database to do something thats easily done with commonsense
- clearing whiteboards
(activity)
so can yall say how to fucking do that shit?
Just did
how
url = f"https://discord.com/api/v9/guilds/{guild_id}/voice-states/@me"
ifound it i think
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.