Protect against discovered miss-use of state

This commit is contained in:
Marc Di Luzio 2024-08-13 23:32:28 +01:00
parent 87a0c8f4b6
commit f2d7e1d490
3 changed files with 6 additions and 6 deletions

View file

@ -20,7 +20,7 @@ async def bot():
b = commands.Bot(command_prefix="$",
intents=intents)
await b._async_setup_hook()
await b.add_cog(OwnerCog(b, state.State()))
await b.add_cog(OwnerCog(b, state.State(state._EMPTY_DICT)))
dpytest.configure(b)
yield b
await dpytest.empty_queue()