Make get_loeh private

This commit is contained in:
2021-01-19 11:26:39 +01:00
parent 56ff31c131
commit 55e258513b

4
bot.py
View File

@@ -53,7 +53,7 @@ if 'LIBOPUS' in os.environ and not len(os.environ['LIBOPUS']) == 0:
discord.opus.load_opus(os.environ['LIBOPUS'])
async def get_loeh(guild: discord.Guild) -> Optional[discord.Member]:
async def _get_loeh(guild: discord.Guild) -> Optional[discord.Member]:
try:
return await guild.fetch_member(LOEH_ID)
except discord.NotFound:
@@ -78,7 +78,7 @@ async def on_message(message: discord.Message):
await message.channel.send('429: Too many requests')
return
last_och = t
loeh = await get_loeh(message.guild)
loeh = await _get_loeh(message.guild)
if loeh is None:
await message.channel.send('404: Löh not found!')
elif loeh.voice is None: