slack_bot

command module
v0.0.0-...-de135fb Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 2 Imported by: 0

README

Slack Bot with Wit.AI and Wolfram

A Slack bot built with Go that integrates with Wit.AI and Wolfram Alpha to provide dynamic answers to user questions.

Project Demo

Features

  • Command Handling: Responds to user commands in Slack.
  • Natural Language Processing: Utilizes Wit.AI for understanding user queries.
  • Intelligent Responses: Fetches answers from Wolfram Alpha based on user questions.

Getting Started

Prerequisites
  • Go (1.21.13 or higher)
  • Slack API Token
  • Wit.AI API Token
  • Wolfram Alpha App ID
Installation
  1. Clone the repository:

    git clone https://github.com/zeeshanahmad0201/slack_bot.git
    cd slack_bot
    
  2. Install dependencies:

    go mod tidy
    
  3. Set up environment variables: Create a .env file in the root directory with the following content:

    SLACK_BOT_TOKEN=your_slack_bot_token
    SLACK_APP_TOKEN=your_slack_app_token
    WIT_AI_TOKEN=your_wit_ai_token
    WOLFRAM_APP_ID=your_wolfram_app_id
    
  4. Run the bot:

    go run main.go
    

Usage

  • Command Syntax: - <message>

    Example: - What is the capital of France?

    The bot will parse the message, query Wit.AI for intent, and use Wolfram Alpha to provide an answer.

Contributing

Feel free to open issues or submit pull requests to improve the bot. Contributions are welcome!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
bot
pkg

Jump to

Keyboard shortcuts

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