Compare commits
2 Commits
2b11ba3f51
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 5314ae6808 | |||
| 84ae6b0cd9 |
@@ -40,10 +40,10 @@ class Error(commands.Cog):
|
|||||||
await ctx.send("I could not find that member. Please try again.")
|
await ctx.send("I could not find that member. Please try again.")
|
||||||
|
|
||||||
elif isinstance(error, commands.MissingPermissions):
|
elif isinstance(error, commands.MissingPermissions):
|
||||||
await ctx.reply("Ээм друк у тебя нет прав на использование этой команды!!")
|
await ctx.reply("You don't have permissions to use this command")
|
||||||
|
|
||||||
elif isinstance(error, commands.NotOwner):
|
elif isinstance(error, commands.NotOwner):
|
||||||
await ctx.reply("Эта команда доступна только владельцу бота!!!")
|
await ctx.reply("This command is only available to the bot owner")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print(
|
print(
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ class Filter(commands.Cog):
|
|||||||
|
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.is_owner()
|
@commands.has_permissions(administrator=True)
|
||||||
async def clear_msgdb(self, message):
|
async def clear_msgdb(self, message):
|
||||||
"""
|
"""
|
||||||
Clear db for 'message'
|
Clear db for 'message'
|
||||||
@@ -93,7 +93,7 @@ class Filter(commands.Cog):
|
|||||||
await message.send(embed=embed)
|
await message.send(embed=embed)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.is_owner()
|
@commands.has_permissions(administrator=True)
|
||||||
async def msgdb(self, message):
|
async def msgdb(self, message):
|
||||||
"""
|
"""
|
||||||
Total number of DB msgsend
|
Total number of DB msgsend
|
||||||
@@ -109,7 +109,7 @@ class Filter(commands.Cog):
|
|||||||
await message.send(embed=embed)
|
await message.send(embed=embed)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.is_owner()
|
@commands.has_permissions(administrator=True)
|
||||||
async def toggle(self, ctx, *msg):
|
async def toggle(self, ctx, *msg):
|
||||||
"""
|
"""
|
||||||
Toggle(msgsend, badwords, logs)
|
Toggle(msgsend, badwords, logs)
|
||||||
@@ -139,7 +139,7 @@ class Filter(commands.Cog):
|
|||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.is_owner()
|
@commands.has_permissions(administrator=True)
|
||||||
async def status(self, ctx):
|
async def status(self, ctx):
|
||||||
"""
|
"""
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ class Moderation(commands.Cog):
|
|||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.is_owner()
|
@commands.has_permissions(administrator=True)
|
||||||
async def setwarnnumb(self, ctx,* , numb):
|
async def setwarnnumb(self, ctx,* , numb):
|
||||||
server_id = ctx.guild.id
|
server_id = ctx.guild.id
|
||||||
row = self.bot.conwarn.execute("SELECT number FROM warnid WHERE server_id=?", (server_id,))
|
row = self.bot.conwarn.execute("SELECT number FROM warnid WHERE server_id=?", (server_id,))
|
||||||
@@ -166,7 +166,7 @@ class Moderation(commands.Cog):
|
|||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.is_owner()
|
@commands.has_permissions(administrator=True)
|
||||||
async def setwarnact(self, ctx,* , numb):
|
async def setwarnact(self, ctx,* , numb):
|
||||||
server_id = ctx.guild.id
|
server_id = ctx.guild.id
|
||||||
row = self.bot.conwarn.execute("SELECT number FROM warnact WHERE server_id=?", (server_id,))
|
row = self.bot.conwarn.execute("SELECT number FROM warnact WHERE server_id=?", (server_id,))
|
||||||
@@ -190,7 +190,7 @@ class Moderation(commands.Cog):
|
|||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.is_owner()
|
@commands.has_permissions(administrator=True)
|
||||||
async def warnsettings(self, ctx):
|
async def warnsettings(self, ctx):
|
||||||
server_id = ctx.guild.id
|
server_id = ctx.guild.id
|
||||||
row = self.bot.conwarn.execute("SELECT number FROM warnid WHERE server_id=?", (server_id,))
|
row = self.bot.conwarn.execute("SELECT number FROM warnid WHERE server_id=?", (server_id,))
|
||||||
|
|||||||
Reference in New Issue
Block a user