Skip to content

Kirbyy1/Simple-Discord-SelfBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

Simple-Discord-SelfBot

This project was created with the intention of conducting testing and was inspired by Kunutza. It is a barebones structure, allowing you to perform basic actions such as reading, deleting, and sending messages. However, additional features can be easily added.

What is this?

A Discord selfbot is a type of bot that is specifically designed to run on a single user account. These bots can automate various tasks and perform actions on behalf of the user, such as sending messages, reacting to messages, and managing user data. However, it's important to note that the use of selfbots goes against Discord's terms of service and can result in the user's account being banned.

Examples

Sending a message:

discord_client = Discord(token=auth_token, user_agent=random_user_agent)

response = discord_client.send_message(channel_id='channel_id', message='Hello World')

if response.status_code == 200:
    print("Message sent successfully")
else:
    print("Failed to send message")

Reading messages:

discord_client = Discord(token=auth_token, user_agent=random_user_agent)

response = discord_client.read_messages(channel_id='channel_id')

if response.status_code == 200:
    messages = response.json()
    for message in messages:
        print(f"Message ID: {message['id']} - Message: {message['content']}")
else:
    print("Failed to retrieve messages")

Deleting a message:

discord_client = Discord(token=auth_token, user_agent=random_user_agent)

response = discord_client.delete_message(channel_id='channel_id', message_id='message_id')

if response.status_code == 204:
    print("Message deleted successfully")
else:
    print("Failed to delete message")

Example Project

Delete all messages sent by you in a channel

import time

discord = Discord(token) # replace `token` with your Discord API token
channel_id = "channel_id" # replace `channel_id` with the ID of the channel you want to delete messages from
messages = discord.read_messages(channel_id).json()

# Setting the rate limit to 90 requests per minute (1 request per 6.67 seconds)
rate_limit = 90
interval = 60 / rate_limit

for message in messages:
    if message["author"]["id"] == "user_id": # replace `user_id` with the ID of the user whose messages you want to delete
        discord.delete_message(channel_id, message["id"])
        time.sleep(interval)

Terms of Use Disclaimer

This project is for educational purposes only and any use in violation of terms of service is the responsibility of the user.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages