breaking change !
update(database): change database ORM todo: update Admin, Poll and User cogs
This commit is contained in:
parent
96618fa502
commit
be1e6d24e4
16 changed files with 111 additions and 149 deletions
|
@ -9,7 +9,7 @@ from discord.ext import commands
|
|||
|
||||
from bot import TuxBot
|
||||
from utils import Texts
|
||||
from utils import WarnModel, LangModel
|
||||
from utils.models import WarnModel
|
||||
from utils import commandExtra, groupExtra
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
|
|
@ -150,13 +150,6 @@ class Useful(commands.Cog):
|
|||
|
||||
###########################################################################
|
||||
|
||||
@commands.Cog.listener()
|
||||
async def on_command_error(self, ctx, error):
|
||||
if isinstance(error, commands.CommandOnCooldown):
|
||||
await ctx.send(error)
|
||||
|
||||
###########################################################################
|
||||
|
||||
@commandExtra(name='getheaders', category='network')
|
||||
async def _getheaders(self, ctx: commands.Context, addr: str):
|
||||
if (addr.startswith('http') or addr.startswith('ftp')) is not True:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue