Повышен уровень логгирования
This commit is contained in:
@@ -33,7 +33,10 @@ from sqlalchemy.schema import CreateTable
|
|||||||
import gspread
|
import gspread
|
||||||
from google.oauth2.service_account import Credentials
|
from google.oauth2.service_account import Credentials
|
||||||
|
|
||||||
|
logging.basicConfig(level=logging.INFO)
|
||||||
|
|
||||||
class AnyBots(commands.Bot):
|
class AnyBots(commands.Bot):
|
||||||
|
logging = logging
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class MainAdminModule(commands.Cog):
|
|||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
print(f'KrekFunBot admin module activated')
|
self.client.logging.info(f'KrekFunBot admin module activated')
|
||||||
self.krekchat = await self.client.fetch_guild(constants["krekchat"])
|
self.krekchat = await self.client.fetch_guild(constants["krekchat"])
|
||||||
self.me = disnake.utils.get(self.krekchat.roles, id=constants["me"])
|
self.me = disnake.utils.get(self.krekchat.roles, id=constants["me"])
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import logging
|
|
||||||
import disnake
|
import disnake
|
||||||
from disnake.ext import commands
|
from disnake.ext import commands
|
||||||
from disnake.ext import tasks
|
from disnake.ext import tasks
|
||||||
@@ -33,7 +32,7 @@ class MainDesignerModule(commands.Cog):
|
|||||||
self.krekchat = await self.client.fetch_guild(constants["krekchat"])
|
self.krekchat = await self.client.fetch_guild(constants["krekchat"])
|
||||||
self.sponsors = [disnake.utils.get(self.krekchat.roles, id=i) for i in constants["sponsors"]]
|
self.sponsors = [disnake.utils.get(self.krekchat.roles, id=i) for i in constants["sponsors"]]
|
||||||
self.me = disnake.utils.get(self.krekchat.roles, id=constants["me"])
|
self.me = disnake.utils.get(self.krekchat.roles, id=constants["me"])
|
||||||
logging.info(f'KrekFunBot designer module activated')
|
self.client.logging.info(f'KrekFunBot designer module activated')
|
||||||
|
|
||||||
@commands.slash_command(name = "профиль", description="Ваш профиль на сервере")
|
@commands.slash_command(name = "профиль", description="Ваш профиль на сервере")
|
||||||
async def Profile(self, ctx: disnake.AppCmdInter,
|
async def Profile(self, ctx: disnake.AppCmdInter,
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import logging
|
|
||||||
import disnake
|
import disnake
|
||||||
from disnake.ext import commands
|
from disnake.ext import commands
|
||||||
from disnake.ext import tasks
|
from disnake.ext import tasks
|
||||||
@@ -29,7 +28,7 @@ class MainEconomyModule(commands.Cog):
|
|||||||
self.krekchat = await self.client.fetch_guild(constants["krekchat"])
|
self.krekchat = await self.client.fetch_guild(constants["krekchat"])
|
||||||
self.sponsors = [disnake.utils.get(self.krekchat.roles, id=i) for i in constants["sponsors"]]
|
self.sponsors = [disnake.utils.get(self.krekchat.roles, id=i) for i in constants["sponsors"]]
|
||||||
self.me = disnake.utils.get(self.krekchat.roles, id=constants["me"])
|
self.me = disnake.utils.get(self.krekchat.roles, id=constants["me"])
|
||||||
logging.info(f'KrekFunBot economy module activated')
|
self.client.logging.info(f'KrekFunBot economy module activated')
|
||||||
|
|
||||||
@commands.slash_command(name = "статистика", description="Статистика отображает все данные о пользователе")
|
@commands.slash_command(name = "статистика", description="Статистика отображает все данные о пользователе")
|
||||||
async def UserStatistic(self, ctx: disnake.AppCmdInter,
|
async def UserStatistic(self, ctx: disnake.AppCmdInter,
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
|
|
||||||
import logging
|
|
||||||
import disnake
|
import disnake
|
||||||
from disnake.ext import commands
|
from disnake.ext import commands
|
||||||
from disnake.ext import tasks
|
from disnake.ext import tasks
|
||||||
@@ -35,7 +34,7 @@ class MainRimagochiModule(commands.Cog):
|
|||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
logging.info(f'KrekFunBot rimagochi module activated')
|
self.client.logging.info(f'KrekFunBot rimagochi module activated')
|
||||||
krekchat = await self.client.fetch_guild(constants["krekchat"])
|
krekchat = await self.client.fetch_guild(constants["krekchat"])
|
||||||
self.me = disnake.utils.get(krekchat.roles, id=constants["me"])
|
self.me = disnake.utils.get(krekchat.roles, id=constants["me"])
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
|
|
||||||
import logging
|
|
||||||
import disnake
|
import disnake
|
||||||
from disnake.ext import commands
|
from disnake.ext import commands
|
||||||
from disnake.ext import tasks
|
from disnake.ext import tasks
|
||||||
@@ -33,7 +32,7 @@ class MainRolesModule(commands.Cog):
|
|||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
logging.info(f'KrekFunBot roles module activated')
|
self.client.logging.info(f'KrekFunBot roles module activated')
|
||||||
krekchat = await self.client.fetch_guild(constants["krekchat"])
|
krekchat = await self.client.fetch_guild(constants["krekchat"])
|
||||||
self.me = disnake.utils.get(krekchat.roles, id=constants["me"])
|
self.me = disnake.utils.get(krekchat.roles, id=constants["me"])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user