Giter Club home page Giter Club logo

jamcito's Introduction

Setup

Create a file called config.ini inside the jamcito directory. The content of the file should be the following ids:

[DEFAULT]
jam server=<The JAM server id>
test server = <Test server id>
jam general chat = <The JAM general chat id>
test general chat = <The Test general chat id>
token=<The discord token for the bot>

Start the bot

poetry run service-run

To install it as a service

Ubuntu

Run this in the root of the project

$ poetry shell
$ which service-run

We should have something like

/home/gerardo/.cache/pypoetry/virtualenvs/jamcito-tXdIXVmH-py3.8/bin/service-run

Now create the service file to /etc/systemd/system/jamcito.service with the following content:

[Unit]
Description=Jamcito

[Service]
ExecStart=/home/gerardo/.cache/pypoetry/virtualenvs/jamcito-tXdIXVmH-py3.8/bin/service-run

[Install]
WantedBy=multi-user.target

Using The binary path we got before as ExectStart

Now you can start the service

sudo systemctl start example-service

jamcito's People

Contributors

gerardo-m avatar

Watchers

 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.