Giter Club home page Giter Club logo

superstonkdiscordmoderationbot's Introduction

Superstonk moderation bot for discord

Contains the flairy, the qvBot and several other moderation tools for the Superstonk discord server.

Preconditions

  • Ubuntu for the user service (used for automatic restarts and automated deployment)
  • git for initial checkout and automated deployment
  • ssh server for automated deployment and remote administration
  • python3 for the bot itself
  • build-essential to get the make command
  • nano or another text editor to adjust the configuration

Installation

  • Check out the repository git clone https://github.com/halfdane/superstonkDiscordModerationBot.git
  • Change into the directory cd superstonkDiscordModerationBot
  • Install the dependencies and start the bot
    make
  • the first run will fail, so you have to adjust the newly created config.json file nano config.json
  • Run the bot once more and check if it works make
  • If everything works, you can now install and start the bot as a user service (tested only on Ubuntu) make install (Needs sudo rights to allow the bot to keep running after you log out)
  • Watch the logs journalctl --user-unit superstonkModerationBot.service -f

Automated deployment

The bot is deployed using github actions. The workflow is triggered on every push to the main branch. To deploy to a new server, the following steps are necessary:

  • Prepare passwordless login to the server using ssh_keys
  • Create a new environment in the github settings of the repository
  • Create HOST, USERNAME and SSH_KEY environment secrets
  • Adjust the .github/workflows/ssh_deploy.yml file to use the new environment Either by adding a new deployment step or by changing the existing one

superstonkdiscordmoderationbot's People

Contributors

halfdane avatar jonasheymans avatar fkt-hopper-github avatar

Stargazers

 avatar  avatar

Watchers

 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.