! OwOMizu Errors
← All errors
high config

No tokens found! Check .env or tokens.txt

Description

The bot prints 'No tokens found!' and exits immediately because TOKENS resolved to nothing.

Cause

load_dotenv() reads .env relative to your current working directory, not the folder mizu.py lives in. If you launch from a different folder, or a parent that has an empty .env, TOKENS resolves to nothing. Also triggers if .env is missing, the TOKENS= key is absent, or the value is empty.

Fix

Run the bot from inside the owomizu/ folder: cd owomizu && python mizu.py. Confirm owomizu/.env contains a non-empty TOKENS= line. Recent builds pin .env to mizu.py's own folder via an absolute path, so cwd no longer matters after updating.

Code change

Before
TOKENS=
After
TOKENS="token1 channel_id1;token2 channel_id2"