update config system

This commit is contained in:
2025-11-27 16:15:25 +05:00
parent 7d1737d1a7
commit 1abeeef133
5 changed files with 34 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ import discord
from discord.ext import commands
from discord.ext.commands import Context, has_permissions
import random
import config
import os
bad = ['бля', 'хуй', 'пиздец', 'сука', 'ебать', 'ебанат', 'хуя', 'уебан', 'пидор', 'ебаный', 'блять','уебу','пиздану','пизду', 'блядь', 'чивапчичи']
@@ -35,7 +35,8 @@ class Filter(commands.Cog):
async def message(self, message, server_id, channel_id):
if message.content.startswith(config.PREFIX):
prefix = self.bot.getcfg.getprefix()
if message.content.startswith(prefix):
return
name = 'msgsend'
res = await self.bot.select(name, server_id, channel_id)