slack-message

command module
v0.0.0-...-1de6b8c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

slack-message

This is a simple GPTScript tool to send a Slack message to a channel.

Setup and Usage

  1. Create a new Slack app in your workspace.
  2. Under the OAuth & Permissions settings, give your app the following User Token scopes:
    • channels:read
    • chat:write
  3. Install the app to your workspace.
  4. Get your User OAuth Token from the app's OAuth & Permissions settings.
  5. Set the token to the environment variable GPTSCRIPT_SLACK_TOKEN.
  6. Now you can use the tool in a script:
Tools: github.com/gptscript-ai/slack-message

Send a message to the general channel saying "hello from gptscript".

License

Copyright (c) 2024 Acorn Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL