Created
March 13, 2020 07:20
-
-
Save davidbegin/95200c4786e9b5d2a9ae26f610069524 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@dataclass | |
class TwitchConfig: | |
token: str = os.environ["TWITCH_OAUTH_TOKEN"] | |
bot: str = os.environ.get("TWITCH_BOT_NAME", DEFAULT_BOT) | |
channel: str = os.environ.get("TWITCH_CHANNEL", DEFAULT_CHANNEL) | |
def __repr__(self): | |
return f"TwitchConfig(bot: {self.bot}, channel: {self.channel})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment