Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/test_bot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import asyncio
import logging
import os
import random
from asyncio import AbstractEventLoop
from contextlib import suppress
from datetime import datetime
Expand Down Expand Up @@ -75,7 +76,7 @@ async def bot(github_commit) -> Client:
gw = asyncio.create_task(bot.start_gateway())

await bot._ready.wait()
bot.suffix = github_commit
bot.suffix = github_commit + " - " + hex(random.randint(0, 255))[2:]
log.info(f"Logged in as {bot.user} ({bot.user.id}) -- {bot.suffix}")

yield bot
Expand Down