Skip to content

StuyCSDojo/slackbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack-bot

Features:

  1. When user joins, tell them to update profile with: full name, course, teacher
  2. When user types "!help" ping senpai

Prereq:

  • apache
  • python3
    $ sudo apt-get install libapache2-mod-wsgi-py3 
    $ sudo a2enmod wsgi 
    $ sudo service apache2 restart

How to set up

  1. Create a droplet (use $5 plan) and make sure port 80 is open
  2. Run sudo apt update && sudo apt install apache2
  3. Run this:
    $ sudo apt-get install libapache2-mod-wsgi-py3 
    $ sudo a2enmod wsgi # this might say: "Module wsgi already enabled"
    $ sudo service apache2 restart
    $ apt-get install python3-pip
    $ pip3 install flask
  4. Run this:
    $ cd /var/www/
    $ git clone https://github.com/StuyCSDojo/slackbot.git
    $ cd slackbot
    
    # IMPORTANT READ THIS READ THIS READ THIS ---
    # Modify slackbot.conf and change the value of "ServerName" to the ipaddress of the droplet (ipv4)
    
    $ chgrp -R www-data slackbot
    $ chmod -R g+w slackbot
    $ cp /var/www/slackbot/slackbot.conf /etc/apache2/sites-available/slackbot.conf
    $ a2ensite slackbot
    $ service apache2 restart

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published