【发布时间】:2022-08-06 22:09:14
【问题描述】:
所以我的不和谐服务器被黑了,每个人都被“gotcha”理由禁止了 有没有办法让这段代码读到这个原因并解禁拥有它的每个人? 如果不是什么大问题,它可以在频道中发送这个不受限制的 nicks 或 id\'s 吗?
import discord
from discord.ext import commands
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix = \'!\', intents=intents)
@bot.event
async def on_ready():
print(\'TO PRONTO FDP\')
@bot.command()
async def pronto(ctx):
await ctx.send(\"Esperando...\")
@bot.command()
async def massunban(ctx):
banlist = await ctx.guild.bans()
for users in banlist:
try:
await ctx.guild.unban(user=users.user)
await ctx.channel.send(f\"UNBANNED: **{users.user}**\")
except:
pass
await ctx.channel.send(f\"Finalizado\")
标签: python discord.py