Skip to content

Commit

Permalink
Adds env var for --token: SXM_DISCORD_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
AngellusMortis committed Jul 17, 2021
1 parent 8616fc4 commit 92c76c5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
History
=======

0.2.1 (2021-08-17)
------------------

* Adds env var for `--token`: `SXM_DISCORD_TOKEN`

0.2.0 (2021-08-17)
------------------

Expand Down
2 changes: 1 addition & 1 deletion sxm_discord/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

__author__ = """Christopher Bailey"""
__email__ = "[email protected]"
__version__ = "0.2.0"
__version__ = "0.2.1"

__all__ = ["DiscordPlayer"]
8 changes: 7 additions & 1 deletion sxm_discord/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@

class DiscordPlayer(BasePlayer):
params: List[click.Parameter] = [
Option("--token", required=True, type=str, help="Discord bot token"),
Option(
"--token",
required=True,
type=str,
help="Discord bot token",
envvar="SXM_DISCORD_TOKEN",
),
Option(
"--root-command",
type=str,
Expand Down

0 comments on commit 92c76c5

Please sign in to comment.