WIP: libbot 4.0.0 adoption
This commit is contained in:
@@ -13,8 +13,7 @@ from discord import (
|
||||
)
|
||||
from discord import utils as ds_utils
|
||||
from discord.ext import commands
|
||||
from libbot import config_get
|
||||
from libbot.sync import config_get as sync_config_get
|
||||
from libbot.utils import config_get
|
||||
|
||||
from classes.holo_bot import HoloBot
|
||||
from enums import Color
|
||||
@@ -117,7 +116,7 @@ class Admin(commands.Cog):
|
||||
@slash_command(
|
||||
name="clear",
|
||||
description="Видалити деяку кількість повідомлень в каналі",
|
||||
guild_ids=[sync_config_get("guild")],
|
||||
guild_ids=[config_get("guild")],
|
||||
)
|
||||
@option("amount", description="Кількість")
|
||||
@option("user", description="Користувач", default=None)
|
||||
@@ -182,7 +181,7 @@ class Admin(commands.Cog):
|
||||
@slash_command(
|
||||
name="reboot",
|
||||
description="Перезапустити бота",
|
||||
guild_ids=[sync_config_get("guild")],
|
||||
guild_ids=[config_get("guild")],
|
||||
)
|
||||
async def reboot_cmd(self, ctx: ApplicationContext) -> None:
|
||||
await ctx.defer(ephemeral=True)
|
||||
|
Reference in New Issue
Block a user