Skip to content

Commit 45c1930

Browse files
Max McBrideMark Preston
authored andcommitted
Specify "token" argument name in example code block in README.md. (slackapi#420)
Otherwise there seems to be a consistent exception being thrown: > TypeError: __init__() takes 1 positional argument but 2 were given
1 parent bc756d8 commit 45c1930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ In our example below, we watch for a [message event][message-event] that contain
143143
)
144144

145145
slack_token = os.environ["SLACK_API_TOKEN"]
146-
rtm_client = slack.RTMClient(slack_token)
146+
rtm_client = slack.RTMClient(token=slack_token)
147147
rtm_client.start()
148148
```
149149

0 commit comments

Comments
 (0)