[英]Python Discord, connect as an user
所以我嘗試制作一個與真實帳戶連接的 selfbot(在我自己的服務器上)
import discord
import asyncio
client = discord.Client()
@client.event
async def on_ready():
print(client.servers)
if __name__ == '__main__':
email = input("Enter email: ")
password = input("Enter password: ")
client.login(email, password)
我有一個錯誤: TypeError: login() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
感謝您幫助我
首先,您不能使用電子郵件和密碼調用登錄方法。
唯一的方法是獲取令牌。
如何獲得令牌?
Open Chrome Devtools: F12 on Web client or Ctrl+Shift+I on Electron client.
Select Network Tab and Record Network Activity.(Red Circle)
Click any other server, Select `Science` and Go end of Headers
Request Payload Tab - You will find your token.
Make token python variable and DO NOT SHARE CODE OR TOKEN!
警告
但要小心,最好不要: Selfbot 會導致禁止你不和諧!
現在我有我的令牌我有一個錯誤discord.errors.LoginFailure: Improper token has been passed.
我很確定我的令牌是正確的
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.