Code Monkey home page Code Monkey logo

filmybot's Introduction

FilmyBot

A Slack bot for getting movie information while communicating using Slack

Tools

Setting up the environment

First, fork the main repo. Then clone the forked repository on your local machine

git clone https://github.com/YourName/FilmyBot.git

Navigate to the directory and create a new virtual environment

virtualenv botvenv

Activate the virtual environment

source botvenv/bin/activate

Then install the Python slackclient library with the pip command

sudo pip install slackclient

The next step is to create a bot user for our Slack team and obtain the API access token.

Create a new bot user by following the create a new bot user instructions on the Bot Users pages

Copy the bot API access token and export is an environment variable named SLACK_BOT_TOKEN

    export SLACK_BOT_TOKEN='your Slack API token'

Getting the bot ID

Run the get_botid.py script to get the bot ID. In the script, change the value of 'BOT_NAME' to the name of the bot that you created.

python get_botid.py

The id returned by this script is your bot ID which you'll be using in the filmyBot.py script to start the Slack bot.

Running Filmybot in your Slack channel

After setting the bot id in the filmyBot.py script, run the following

    python filmyBot.py

Invite the Filmybot in your Slack channel

Run the Filmybot as follows

filmybot's People

Contributors

saishredkar avatar siddharthpant92 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

siddharthpant92

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.