Giter Site home page Giter Site logo

botsproject's Introduction

botsProject

This project contains bots made for the programme IT-Spåret on Ädelfors Folkhögskola. The bots are deployed to an e2-micro VM instance on the Google Cloud Platform (GCP). This VM instance uses Ubuntu 22.04 LTS which currently supports Python version 3.10. This means that I have hard-coded a strict requirement of Python 3.10 in every bot.

This repository is configured for development in the PyCharm IDE, use it for the optimal development experience. The bots can be tested locally (with some difficulty), the process required to do so is documented below.

How to develop and test the bots

Firstly, make sure that you have Python 3.10 installed. It is the default version on Ubuntu 22.04 & 22.10, Debian 11, and a few other distros. It can alternatively be downloaded and installed from the official python website.

Secondly, install PyCharm (for a vastly improved development experience), install the Community edition here.

Thirdly, create a new project in PyCharm, by "Get from VCS" in the Welcome window -> then choose "GitHub" among the options in the left pane, and follow the config. Once set up, choose the right project.

Now, from the built-in cosole in PyCharm, run pip install -r requirements.txt which installs the dependencies of the bots.

IMPORTANT STEP: Send the messages !stopWorky and !stopFoody on the Discord server to kill the bots.

Now you can freely test one of the bots simply py pushing the "run" (green right triangle) button while in one of the scripts in PyCharm.

WHEN YOU'RE DONE: Push the changes to GitHub. The changes are automagically deployed to the GCP instance.

botsproject's People

Contributors

joharasmus 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.