Merubokkusu / Discord-S.C.U.M

A Discord API Wrapper for Userbots/Selfbots written in Python.
MIT License
590 stars 166 forks source link

I get an error with create a DM #29

Closed excelant100 closed 3 years ago

excelant100 commented 3 years ago

ok so I used the example to fetsh members wich is working correctly. I get all their ids and using for loop I want to create a DM channel foreach of them.

`@bot.gateway.command def memberTest(resp): guild_id = '714338144954351669' channel_id = '743719231274876998' if resp.event.ready_supplemental: bot.gateway.fetchMembers(guild_id, channel_id) if bot.gateway.finishedMemberFetching(guild_id): bot.gateway.removeCommand(memberTest) bot.gateway.close()

bot.gateway.run() print('aa') for member in bot.gateway.session.guild('714338144954351669').members: bot.createDM([member])`

When I replace member with a manual id its working fine.

arandomnewaccount: disclaimer: a mass dm is a bad idea since it can get your account flagged pretty quickly. Anyway, with that in mind, I tried the code that you sent and it worked on my end. You might get some response 400s due to ppl turning off their direct-messages & you can't dm yourself, but that's it. Also, I just got my alt account "flagged" (I'll need to use a phone number to verify) and I only did 3 createDM calls (with no wait time) so...yea...I don't recommend it.

This is the code I used btw:

for member in bot.gateway.session.guild("guild id here").members:
    if member != "my user id here": #this check isnt necessary, but it saves you one createDM call
        bot.createDM([member])
excelant100 commented 3 years ago

ok in this case if I use Discum to fetsh members and use discord py to send message. I wont get flagged that quick since its normal for bots to send a lot of DMs at a time?

Merubokkusu commented 3 years ago

So discord.py is for Bots, discum if focused on userbots (which are are against the tos) You can get server members with discord.py if you’re making a bot https://discordpy.readthedocs.io/en/latest/api.html?highlight=get%20all%20members#discord.Client.get_all_members

excelant100 commented 3 years ago

yeah I know this, the goal is to DM spam. What I want to do is simple. My userbot will join random discord server and spam people there. Since DMing with discum is risky, I though that using discord py to actually DM the user would be better, but I need discum to fetsh members, I wont have to write a command so the bot start spamming. I want it that once it joined the server, after some delay, it gets to works. I dont think that only discord py will let me achieve this, so I need both. Btw you can still use discord py for userbots.

excelant100 commented 3 years ago

my account to got flagged with createDM. Gonna make a new one through a VPN, I hope they wont ask for phone verification.

Merubokkusu commented 3 years ago

I mean, no matter what you'll get banned for mass DM spamming. Discord already sends you a cool down warning for every 10 DM's sent within 10 minutes. SMS verification could delay it, but overall its ticking time bomb.

excelant100 commented 3 years ago

I wont spam like this, ill put reasonable delay. like a random delay between 3 minutes or 7 to send 1 DM. I know I will get banned, in this case just create another account. I want to like send around 500 to 600 Dms per day per account. Btw, bots like mee6 etc. send more than 10 Dms per second. I dont care if they get ban, ill just make another (yeah ill buy some proxy and 2captcha things) Oh between is there a function do automatic sms verification.

ill try to make money of this of course.

Merubokkusu commented 3 years ago

Mee6 is a server bot. There hasn’t been much testing for that length of time, but I don’t see the point of using two different libraries

excelant100 commented 3 years ago

so you mean using discord py send message, will have the same effect that using discum create DM. I wont get flagged faster using Discum. like discum does not the the same request than discord py. discum do the same request that a user do when using discord right? you check the network thing and simulate the request. But I dont think python py does the same thing, since its made for discord bots. So maybe its safer to spam send DM with discord bot than discum. I am not sure if you understand what I meant.

Merubokkusu commented 3 years ago

I feel like discum would be safer as it uses the same requests as the actual client uses, there’s room to experiment with both and see the outcome.

But using two different libraries will definitely speed up getting banned .

excelant100 commented 3 years ago

yeah youre right I guess, ill test and see how it will go. I hope it can work the way I am thinking.


arandomnewaccount: hey just wanted to point out an important distinction between createDM and sendMessage in discum. createDM only creates a DM channel with a recipient (or multiple recipients if group DM). Then, you can use sendMessage to send a message to a channel. So, the process of creating the DM and then sending that person a message would look like this:

newDM = bot.createDM([userID]).json()["id"]
bot.sendMessage(newDM, "hello")

edit: closing this issue as it's currently inactive and answers were given, if the problem comes up again, feel free to reopen the issue.