Git Product home page Git Product logo

uqcsbot's Introduction

uqcsbot

uqcsbot is a chat bot built in python for use on our UQCS Slack Team.

Setting up the bot

Run pip install -e .

Running the bot in the communal dev Slack team

  1. Ensure you've joined the uqcstesting Slack team
  2. Run python3 -m uqcsbot --dev

If a bot was available, it will now be running on uqcstesting.

Running the bot in a custom Slack team

  1. Create a Slack workspace
  2. Create a new Slack app
  3. Add a bot user to your app
  4. Install your app to your workspace. Install App > Install App to Workspace
  5. Copy the Bot User OAuth Access Token and set it as an environment variable under SLACK_BOT_TOKEN
  6. Go to Basic Information, copy your Verification Token and set it as an environment variable under SLACK_VERIFICATION_TOKEN
  7. Run python3 -m uqcsbot

The bot will now be running on your custom Slack.

Tests

  1. Ensure you have Tox installed (run pip install -e tox)
  2. Run tox from the same directory as this README

The bot uses pytest. You can run the tests with the command pytest from the project's root directory. It should automatically discover the tests (which are located in the tests directory).

You don't need to have set up a Slack team to run the tests; they capture the messages which would have been sent to Slack by the bot.

All new scripts must come with tests before they will be accepted into the bot.

uqcsbot's People

Contributors

mitchmcdee avatar trmanderson avatar nicklambourne avatar mubiquity avatar lewisjb avatar bradleysigma avatar cameronaavik avatar jdcaperon avatar tgrkzus avatar josephgarrone avatar svict4 avatar gricey432 avatar mgtlake avatar guthers avatar ldgrp avatar bodenm avatar bluedragon23 avatar adriant4456 avatar jack775544 avatar cavejay avatar wisebaldone avatar r0bk avatar d-lord avatar katrinafyi avatar jgat avatar kumar-ish avatar maxwellbo avatar notmitchmcdee avatar jamesdearlove avatar paul-haley avatar

Watchers

James Cloos avatar  avatar

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.