Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomatree authored Aug 21, 2019
1 parent c4ad472 commit 874ddc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions showcase.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import actioneer

handler = actioneer.Performer([, 1, True]) # inits the command handler, the argument is preset contexts that will be passed to the command
handler = actioneer.Performer([1, True]) # inits the command handler, the argument is preset contexts that will be passed to the command
# you can subclass Perfomer and overwride the "split_args", "get_options" and "get_flags"

def echo(*msg, message: str, flags: actioneer.Flags, options: actioneer.Options): # kwargs will be treated as contexts that will be passed to the command, this system used the annotations to find what to set as what
Expand All @@ -20,4 +20,4 @@ def echo(*msg, message: str, flags: actioneer.Flags, options: actioneer.Options)
# 2 - command args
# 3 - flag
# 4 - option
# 5 - extra command context's that can be set when being invoked, ie channel, message ect
# 5 - extra command context's that can be set when being invoked, ie channel, message ect

0 comments on commit 874ddc1

Please sign in to comment.