Skip to content

Commit

Permalink
translate: hint hint in help
Browse files Browse the repository at this point in the history
Co-authored-by: dgw <[email protected]>
  • Loading branch information
half-duplex and dgw committed May 28, 2023
1 parent e5bcd1f commit 8aea6e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sopel/modules/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ def tr(bot, trigger):
@plugin.command('translate', 'tr')
@plugin.example('.tr :en :fr my dog',
'"mon chien" (en to fr, translate.google.com)',
online=True, vcr=True)
online=True, vcr=True, user_help=True)
@plugin.example('.tr מחשב',
'"computer" (iw to en, translate.google.com)',
online=True, vcr=True)
@plugin.example('.tr mon chien',
'"my dog" (fr to en, translate.google.com)',
online=True, vcr=True)
online=True, vcr=True, user_help=True)
@plugin.output_prefix(PLUGIN_OUTPUT_PREFIX)
def tr2(bot, trigger):
"""Translates a phrase, with an optional language hint."""
"""Translates a phrase, with an optional language :hint."""
command = trigger.group(2)

if not command:
Expand Down

0 comments on commit 8aea6e0

Please sign in to comment.