mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-18 07:42:09 +00:00
Tag: 1.25
Intermediate commits (oldest → newest): - New command added that sets logging level dymnamically - of course fix needed - Fix - refactor: comment out unused AutoIndex import and related code - Add auth to ytdlp - Modified spotipy for auth - Fixes after reinstall - fixx - Add musician fixes - Fix in default config - How to setup radio
This commit is contained in:
@@ -66,6 +66,22 @@ class OtherModule(commands.Cog):
|
||||
"""
|
||||
await ctx.send(historia_fabryczki)
|
||||
|
||||
@commands.hybrid_command(
|
||||
name="set_logging_level",
|
||||
description="Nie intererer bo kici kici",
|
||||
guild=discord.Object(id=664789470779932693),
|
||||
)
|
||||
@commands.has_any_role('Legenda', 'Jarl', 'Bartender')
|
||||
async def set_logging_level(self,ctx):
|
||||
if "DEBUG" in ctx.message.content:
|
||||
logger = logging.getLogger("discord")
|
||||
logger.setLevel(logging.DEBUG)
|
||||
elif "INFO" in ctx.message.content:
|
||||
logger = logging.getLogger("discord")
|
||||
logger.setLevel(logging.INFO)
|
||||
else:
|
||||
await ctx.send("Weź się kurwa zdecyduj co ?")
|
||||
|
||||
@commands.hybrid_command(
|
||||
name="reset_the_clock",
|
||||
description="Resetowanie zegara - dostępne wyłącznie dla Hammera",
|
||||
|
||||
Reference in New Issue
Block a user