Skip to content

Instantly share code, notes, and snippets.

@davidbegin
Created March 13, 2020 07:20
Show Gist options
  • Save davidbegin/95200c4786e9b5d2a9ae26f610069524 to your computer and use it in GitHub Desktop.
Save davidbegin/95200c4786e9b5d2a9ae26f610069524 to your computer and use it in GitHub Desktop.
@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