소스 검색

added a command to remove gated role.

tags/v1.7.1
Roxie Gibson 6 년 전
부모
커밋
d32cb15dea
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      roxbot/cogs/gss.py

+ 5
- 0
roxbot/cogs/gss.py 파일 보기

@@ -36,6 +36,11 @@ class GaySoundsShitposts:
role = discord.utils.get(member.guild.roles, id=450042170112475136)
await member.add_roles(role, reason="Auto-add role on join")

@bot.command()
async def agree(self, ctx):
role = discord.utils.get(ctx.author.guild.roles, id=450042170112475136)
return await ctx.author.remove_roles(role, reason="User has agreed the rules and has been given access to the server.")

@bot.command(hidden=True)
async def perms(self, ctx, role):
"""Shell command to do the perm assigning. Only should be invoked by another command."""

Loading…
취소
저장