Log errors to stderr
This commit is contained in:
parent
da6c22d1f4
commit
668804f94e
@ -103,11 +103,11 @@ class Bot(discord.Client):
|
|||||||
|
|
||||||
def main(argv: typing.Sequence[str]):
|
def main(argv: typing.Sequence[str]):
|
||||||
if len(argv) == 0:
|
if len(argv) == 0:
|
||||||
print("Usage: lurker.py <token>")
|
print("Usage: lurker.py <token>", file=sys.stderr)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
if not API_URL:
|
if not API_URL:
|
||||||
print("Missing `API_URL` environment variable.")
|
print("Missing `API_URL` environment variable.", file=sys.stderr)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
Bot().run(argv[0])
|
Bot().run(argv[0])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user