Updating AntiScam because of the changes in the internal discord api.

now the dependency is discord.py instead of py-cord
This commit is contained in:
H3cJP
2022-11-19 20:23:52 +01:00
committed by GitHub
parent 180f168945
commit 125528b976
+10 -2
View File
@@ -6,6 +6,14 @@ Here is an example image of the most simple main python script to run a discord
![main.png](img/main.png)
To run the bot, the PyCord module must be installed (on linux, `pip3 install py-cord`).
To run the bot, the PyCord module must be installed (on linux, `pip3 install discord.py`).
More info about how to install discord.py is in their docs: https://discordpy.readthedocs.io/en/stable/intro.html
If you found any trouble, you can report it at the issues section.
Sometimes if the pip3 command is not detected, it may be that `pip` command is already associated with python3 (check it running the command `pip --version`).
If you don't know how to create a discord bot or how to manage server permissions, here is a video made by S4vitar of how to do that: https://youtu.be/k0e_AnL5UeE
Thanks for S4vitar and all those Hack4u moderators who helped me with the testing and for improbing this bot with the aim of stoping this type of scam on discord servers!
# Update
Because of a discord api modification, you might need to enable the "Message Content Intent" option on the Discord Developer Portal if you wanna have no problems.
That's also why this repo have been updated, it was deprecated because of the change.
**IMPORTANT:** The python module dependency have been changed, remember if you had already a bot working with this code to uninstall py-cord and install discord.py.