disnake icon indicating copy to clipboard operation
disnake copied to clipboard

feat: refactor test bot

Open onerandomusername opened this issue 3 years ago • 5 comments

closes #246

onerandomusername avatar Jan 03 '22 18:01 onerandomusername

Since this will be using dotenv, test_launcher.py could probably be removed (TestBot.load_all_extensions might have to be updated then).

An env flag to enable debug logs1 could be cool as well.


1 something like this, I suppose

if DEBUG:
    logging.basicConfig(
        format="%(asctime)s: [%(levelname)s] (%(threadName)s) %(name)s: %(message)s",
        level=logging.INFO,
    )
    logging.getLogger("disnake").setLevel(logging.DEBUG)

shiftinv avatar Jan 03 '22 20:01 shiftinv

Could you add support for logs in a file? Sometimes I don't like to have logs in my command line.

Victorsitou avatar Jan 04 '22 19:01 Victorsitou

I suggest moving test bot to another repo

EQUENOS avatar Jan 10 '22 15:01 EQUENOS

Could you add support for logs in a file? Sometimes I don't like to have logs in my command line.

Added as of https://github.com/DisnakeDev/disnake/pull/247/commits/6f76533f0d1e87edb1296131077c3ff50ae989ec

onerandomusername avatar Jan 12 '22 02:01 onerandomusername

Any updates on this?

EmmmaTech avatar Jul 03 '22 01:07 EmmmaTech