Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if you use this you are a skid
- import requests
- import json
- import discord
- from discord.ext import commands
- client = discord.Client()
- client = commands.Bot(description='toxic', command_prefix='!', self_bot=True)
- client.remove_command('help')
- s = requests.session()
- headers = {'username': 'Username', 'password': 'password', 'content-type': 'application/json'}
- programid = 'program id'
- @client.event
- async def on_ready():
- print("Logged in as")
- print(client.user.name)
- print(client.user.id)
- print("--------")
- @client.command(invoke_without_command=True, aliases=['Help'])
- async def help(ctx):
- await ctx.channel.send('Commands:')
- await ctx.channel.send('```!GenToken [days] [level]```')
- @client.command(aliases=['GenToken', 'gent'])
- async def gentoken(ctx, days, level):
- await ctx.message.delete()
- tokenr = s.put('https://safeguardauth.us/api//AddToken', data=json.dumps({"ProgramId":programid,"Days":days,"UserLevel":level}), headers=headers).json()
- await ctx.channel.send(f'> Your Token is: {tokenr["Token1"]}')
- client.run('Token', bot = False)
Add Comment
Please, Sign In to add comment