mirror of
https://github.com/allthingslinux/tux.git
synced 2024-10-02 16:43:12 +00:00
[Lint] Fix linting errors
This commit is contained in:
parent
9801759116
commit
0cc29876dc
3 changed files with 12 additions and 7 deletions
|
@ -1,9 +1,10 @@
|
|||
from discord.ext import commands
|
||||
import os
|
||||
from utils._tux_logger import TuxLogger
|
||||
import logging
|
||||
import os
|
||||
import traceback
|
||||
|
||||
from discord.ext import commands
|
||||
from utils._tux_logger import TuxLogger
|
||||
|
||||
logger = TuxLogger(__name__)
|
||||
|
||||
|
||||
|
@ -15,7 +16,8 @@ class CogLoader(commands.Cog):
|
|||
self.bot = bot
|
||||
self.debug = debug
|
||||
self.ignore_cogs = []
|
||||
if debug: logger.setLevel(logging.DEBUG)
|
||||
if debug:
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
async def load_cogs_from_folder(self, folder_name):
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import logging
|
||||
|
||||
from discord.ext import commands
|
||||
from utils._tux_logger import TuxLogger
|
||||
|
||||
|
@ -18,5 +19,6 @@ class Ping(commands.Cog):
|
|||
|
||||
|
||||
async def setup(bot, debug=False):
|
||||
if debug: logger.setLevel(logging.DEBUG)
|
||||
if debug:
|
||||
logger.setLevel(logging.DEBUG)
|
||||
await bot.add_cog(Ping(bot))
|
|
@ -1,9 +1,10 @@
|
|||
import os
|
||||
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from cog_loader import CogLoader
|
||||
from utils._tux_logger import TuxLogger
|
||||
from discord.ext import commands
|
||||
from dotenv import load_dotenv
|
||||
from utils._tux_logger import TuxLogger
|
||||
|
||||
logger = TuxLogger(__name__)
|
||||
load_dotenv()
|
||||
|
|
Loading…
Reference in a new issue