WaterTheDev / Vibez-Discord-Selfbot

This python file allows you to change your streaming status (MIT LICENSE)
MIT License
20 stars 4 forks source link

NOT A TOKEN LOGGER #1

Closed ghost closed 1 year ago

ghost commented 3 years ago

This is not a token logger, for the ones that don't understand ANYTHING. I explained all of the code below:


# oh ur checking the src?
# feel free!
# https://github.com/WaterTheDev/Discord-Streaming-Status
import os

#--------------installs the required packages--------------
os.system("python -m pip install discord") # some mfs dont have pip installed lmfao
#--------------clears the console--------------
os.system("cls") # dont call me dumb if u use linux

# dont change these credits cuz the tool is under MIT license :)
#--------------sets the title of the program--------------
os.system("title " + "Made by water1597 on TikTok [-] https://github.com/WaterTheDev/Discord-Streaming-Status")

# change what ever the fuck u want under here just nothing from up here :)

#--------------import required modules: discord - to create the status bot, time - to set a delay between commands, json - to read the configuration file--------------
import discord
from discord.ext import commands #-------------- imports the command function for easier commands--------------
import time
import json

#--------------reads the configuration file--------------
with open('config.json') as f:
    config = json.load(f)

#--------------specifies the variables from the configuration file--------------
token = config.get('token')
prefix = config.get('prefix')
streamurl = config.get('streamurl')

#--------------setups the "bot" for your account--------------
bot = commands.Bot(command_prefix=prefix, self_bot=True)

# THIS ONLY WORKS WITH TWITCH AND YOUTUBE LINKS!
# THIS ONLY WORKS WITH TWITCH AND YOUTUBE LINKS!

#--------------removes the default help command from the "bot"--------------
bot.remove_command('help')

#--------------After the bot is ready prints that it is ready and the prefix.--------------
@bot.event
async def on_ready():
    print("Streaming status started!")
    print("Prefix: "+ prefix)
# THIS ONLY WORKS WITH TWITCH AND YOUTUBE LINKS!

#--------------Creates the status command--------------
@bot.command(aliases=["streaming"])
#--------------Imports message arguments--------------
async def stream(ctx, *, message):
    #--------------deletes the sent message--------------
    await ctx.message.delete()
    #--------------print that the status has changed--------------
    print("Status Changed.")
    #--------------specifies the status variables--------------
    stream = discord.Streaming(
        name=message,
        url=streamurl,
    )
    #--------------changes the status#--------------
    await bot.change_presence(activity=stream)

#--------------same here but playing, not streaming.--------------
@bot.command(aliases=["playing"])
async def game(ctx, *, message):
    await ctx.message.delete()
    print("Status Changed.")
    game = discord.Game(
        name=message
    )
    await bot.change_presence(activity=game)

#--------------same here but listening, not playing.--------------        
@bot.command(aliases=["listen"])
async def listening(ctx, *, message):
    await ctx.message.delete()
    print("Status Changed.")
    await bot.change_presence(
        activity=discord.Activity(
            type=discord.ActivityType.listening,
            name=message,
        ))

#--------------same here but watching, not listening.--------------
@bot.command(aliases=["watch"])
async def watching(ctx, *, message):
    await ctx.message.delete()
    print("Status Changed.")
    await bot.change_presence(
        activity=discord.Activity(
            type=discord.ActivityType.watching,
            name=message
        ))

# do streamstop to stop the fake stream
#--------------creates a reset status command--------------
@bot.command(aliases=["stop", "reset"])
#--------------imports the message --------------
async def close(ctx):
    #-------------- deletes the message--------------
    await ctx.message.delete()
    #--------------changes the status to none and do not disturb--------------
    await bot.change_presence(activity=None, status=discord.Status.dnd)
    #--------------prints that the status has been reset--------------
    print("Status reset")
    #--------------waits for 10 seconds--------------
    time.sleep(10)

#--------------defines the help command--------------
@bot.command()
#--------------imports the message--------------
async def help(ctx):
#--------------deletes the message--------------
  await ctx.message.delete()
  #--------------sends the help message--------------
  await ctx.message.channel.send("```Commands: \nstream <Status Message> - Changes your status to Streaming\nwatch <Status Message> - Sets your status to watching\ngame <Status Message> - Changes your status to Playing\nlisten <Status Message> - Sets your status to Listing to\nreset - Resets your status```")

#--------------connects your account to the bot--------------
bot.run(token, bot = False)

#stop saying stuff that you don't understand

# YOU MAY GET BANNED USING THIS.
# DISCORD ToS WON'T ALLOW IT!```
WaterTheDev commented 1 year ago

Thanks for your awareness.