Skip to content

Commit

Permalink
Improve documentation and help message
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Mar 24, 2019
1 parent 042354d commit 49559f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/telegram-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ Shows the current whitelist

Shows the current blacklist.
If Pair is set, then this pair will be added to the pairlist.
Also supports multiple pairs, seperated by a space.
Use `/reload_conf` to reset the blacklist.

> Using blacklist `StaticPairList` with 2 pairs
Expand Down
3 changes: 2 additions & 1 deletion freqtrade/rpc/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ def _help(self, bot: Bot, update: Update) -> None:
"*/stopbuy:* `Stops buying, but handles open trades gracefully` \n" \
"*/reload_conf:* `Reload configuration file` \n" \
"*/whitelist:* `Show current whitelist` \n" \
"*/blacklist:* `Show current blacklist` \n" \
"*/blacklist [pair]:* `Show current blacklist, or adds one or more pairs " \
"to the blacklist.` \n" \
"*/help:* `This help message`\n" \
"*/version:* `Show version`"

Expand Down
1 change: 0 additions & 1 deletion freqtrade/tests/rpc/test_rpc_telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,6 @@ def test_blacklist_static(default_conf, update, mocker) -> None:
assert freqtradebot.pairlists.blacklist == ["DOGE/BTC", "HOT/BTC", "ETH/BTC"]



def test_help_handle(default_conf, update, mocker) -> None:
patch_coinmarketcap(mocker)
msg_mock = MagicMock()
Expand Down

0 comments on commit 49559f1

Please sign in to comment.