mirror of
https://github.com/AsgardEternal/DiscordWhitelist.git
synced 2025-01-02 15:39:19 -06:00
19 lines
433 B
Python
19 lines
433 B
Python
import os
|
|
from sys import stderr
|
|
import discord
|
|
|
|
|
|
# run init stuff inside this function
|
|
def init():
|
|
# make sure this prints the discord token
|
|
# set this up as a runtime environment variable, DO NOT HARDCODE THE TOKEN
|
|
distoken = os.environ.get("DISCORD_TOKEN")
|
|
if not distoken:
|
|
print("Unable to find discord token in environment!", file=stderr)
|
|
exit(1)
|
|
|
|
print(f"discord token:{distoken}")
|
|
|
|
|
|
init()
|