nottoxic

Safeguard-selfbot

May 20th, 2021 (edited)
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. #if you use this you are a skid
  2. import requests
  3. import json
  4. import discord
  5. from discord.ext import commands
  6.  
  7. client = discord.Client()
  8. client = commands.Bot(description='toxic', command_prefix='!', self_bot=True)
  9. client.remove_command('help')
  10. s = requests.session()
  11. headers = {'username': 'Username', 'password': 'password', 'content-type': 'application/json'}
  12. programid = 'program id'
  13.  
  14. @client.event
  15. async def on_ready():
  16. print("Logged in as")
  17. print(client.user.name)
  18. print(client.user.id)
  19. print("--------")
  20.  
  21. @client.command(invoke_without_command=True, aliases=['Help'])
  22. async def help(ctx):
  23. await ctx.channel.send('Commands:')
  24. await ctx.channel.send('```!GenToken [days] [level]```')
  25.  
  26. @client.command(aliases=['GenToken', 'gent'])
  27. async def gentoken(ctx, days, level):
  28. await ctx.message.delete()
  29. tokenr = s.put('https://safeguardauth.us/api//AddToken', data=json.dumps({"ProgramId":programid,"Days":days,"UserLevel":level}), headers=headers).json()
  30. await ctx.channel.send(f'> Your Token is: {tokenr["Token1"]}')
  31.  
  32. client.run('Token', bot = False)
Add Comment
Please, Sign In to add comment