Create a Discord Anti Spam Bot Using C#

Опубликовано: 12 Сентябрь 2024
на канале: tutorialsEU
4k
104

In this video, you will learn how to create an anti-spam discord bot using C# and Discord .Net
Become a PRO C# developer:

So I was going through our discord earlier, which you should join if you haven't, here is the link:

when I came across a spam message!.

Check it out on our website also:


So after deleting the spam a guy on our discord said, I wish discord had an AI feature to auto-delete spam messages.

Here is a GitHub link for the project:


So I decided to make a tutorial for it.

We will be building a discoed bot that will be able to detect when someone sends a link, send it to a security service that will check whether if the link is safe or not, and if so delete the message containing the link.

We will be using discord .net which is a C# wrapper for discord API, we have lots to do so let's get started.

Our bot will log in and connect to the discord using async methods, we will also evaluate our URL using IPQualityScore: which will tell us whether a link is malicious or not.

We will call this API and parse the JSON response into C# objects and delete the spam messages accordingly.
tutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This includes C Unity, Python, Android, Kotlin, Machine Learning, etc.
Stay tuned and subscribe to tutorialsEU:

Sourcecode: