Answer the question
In order to leave comments, you need to log in
You need to specify the ctx argument in on_message in discord.py, but it gives an error. How to solve it?
@bot.event
async def on_message(message,ctx):
rolemute = discord.utils.get(ctx.guild.roles, name=('Muted'))
if rolemute in ctx.author.roles:
await ctx.channel.purge(limit=1)
await bot.process_commands(message)
Answer the question
In order to leave comments, you need to log in
Head-on solution: message must contain author.id , based on this, you can find out its role and delete it.
The script has been obfuscated .
You can use some kind of deobfuscation service like jsbeautifier.org (there are many similar ones). But he will not completely restore the source code, do not hope.
Well, you have an obfuscated miner code. If you look closely, you will see simple operations. If you follow it, you can see how it all translates into quite understandable operations and calls. Functions are accessed through window, like so window["Math"]["cos"](1). From that moment on, it should have dawned on you and all questions should have disappeared as a matter of course. If this did not happen, then alas, programming is not yours at the moment.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question