Code Monkey home page Code Monkey logo

myandela_slack_bot's Introduction

SLACK BOT FOR MY ANDELA

Problem Statement

Everyone knows that https://my.andela.com/ is a great tool as we expand as a talent marketplace But it's utilization is hindered by: -

  1. Having to remember to fill every week
  2. Having to log in to another system (It's a huge cost for context switching )
  3. My Andela seems to be down

Installation

Source code and repository

Clone this repository and go to branch into a folder in your computer

git clone https://github.com/kilonzi/my_andela_bot.git
git checkout -b main

Python installation

Make sure you have python installed or it's Python 3+ onwards Run the command below to check your specific version

python --version

If an earlier version exists or you want to upgrade then follow this tutorial https://realpython.com/installing-python/

Virtual environment

With Python 3 installed:- Navigate using the computer terminal, to the folder you downloaded source code into

cd  path/to/downloaded

The folder should contain the folder src Type in the command below to create a virtual environment.

python3 -m venv venv

In the terminal, run the below command to activate virtual environment

source venv/bin/activate

Requirements installation

with Virtual Environment now active: - Run the command below to install all the requirements to run the program

pip3 install -r requirements.txt

Slack

Create an app on slack and obtain the

SLACK_BOT_TOKEN => OAuth & Permissions SLACK_SIGNING_SECRET => Basic Information

NGROK

Navigate to https://dashboard.ngrok.com/get-started/setup (Why??? Because slack will not allow sending of HTTP requests to https://localhost:3000) To download ngrok and run

./ngrok http 3000

Slack Updating

You will need to go to your slack app and add the URL obtained from NGROK

  1. Interactivity & Shortcuts => Update Interactivity URL so its something like https://bd1eafaee6c3.ngrok.io/slack/interactions

  2. Event Subscriptions => Update request URL https://bd1eafaee6c3.ngrok.io/slack/events

Install your app on your workplace

You will already have done this

Running the program

python3 run.py

Run

Go to Weekly CheckIn

myandela_slack_bot's People

Contributors

kilonzi avatar

Stargazers

Gerald Pharin avatar Considerate Wolf avatar

Watchers

Considerate Wolf avatar

Forkers

pharingee

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.