breaking change !

update(database): change database ORM

todo: update Admin, Poll and User cogs
This commit is contained in:
Romain J 2020-01-15 22:56:54 +01:00
commit be1e6d24e4
16 changed files with 111 additions and 149 deletions

View file

@ -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__)

View file

@ -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: