Merge branch '#46' of https://git.sh-edraft.de/sh-edraft.de/kd_discord_bot into #46
Conflicts: kdb-bot/src/modules/level/level_seeder.py
This commit is contained in:
commit
a8f481ff4a
@ -1,7 +1,6 @@
|
||||
import discord
|
||||
from cpl_discord.container import Guild, Role
|
||||
from cpl_discord.container import Guild
|
||||
from cpl_discord.service import DiscordBotServiceABC
|
||||
from cpl_query.extension import List
|
||||
from discord import Permissions, Colour
|
||||
|
||||
from bot_core.logging.database_logger import DatabaseLogger
|
||||
@ -36,7 +35,6 @@ class LevelSeeder(DataSeederABC):
|
||||
levels = self._levels.find_levels_by_server_id(server.server_id)
|
||||
if levels is None or levels.where(lambda l: l.name == level.name).first_or_default() is None:
|
||||
self._levels.add_level(level)
|
||||
self._logger.debug(__name__, f'Saved level {level.name}')
|
||||
except discord.errors.Forbidden as e:
|
||||
self._logger.error(__name__, f'Creating level failed', e)
|
||||
level.permissions = 0
|
||||
|
Loading…
Reference in New Issue
Block a user