Skip to content
This repository has been archived by the owner on Feb 20, 2025. It is now read-only.

Commit

Permalink
Merge pull request #1 from UnifierHQ/v2
Browse files Browse the repository at this point in the history
V2
  • Loading branch information
greeeen-dev authored Jun 5, 2024
2 parents 7d2c57a + e340bd6 commit 17cb24e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"id": "raidguard",
"name": "RaidGuard",
"description": "Raid detection plugin for Unifier",
"version": "v1.0.0",
"release": 0,
"minimum": 43,
"version": "v1.1.0",
"release": 1,
"minimum": 49,
"services": [
"content_protection"
],
Expand Down
6 changes: 3 additions & 3 deletions raidguard_content_protection.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import discord
import nextcord
import revolt
import guilded
import time
Expand Down Expand Up @@ -105,7 +105,7 @@ async def push_raidban(raidban,raidbans):
return index
return None

async def scan(message: discord.Message or revolt.Message or guilded.Message, data):
async def scan(message: nextcord.Message or revolt.Message or guilded.Message, data):
"""Message scan logic"""

# Example ban entry in target:
Expand All @@ -125,7 +125,7 @@ async def scan(message: discord.Message or revolt.Message or guilded.Message, da
except:
raidbans = []

if (not message.guild.explicit_content_filter == discord.ContentFilter.all_members or
if (not message.guild.explicit_content_filter == nextcord.ContentFilter.all_members or
message.channel.nsfw) and not config['allow_nsfw']:
response['unsafe'] = True
response['description'] = (
Expand Down

0 comments on commit 17cb24e

Please sign in to comment.