Code Monkey home page Code Monkey logo

mjolnir's Introduction

Johannes Nilsson

I enjoy learning tinkering with both code and design. Currently I'm learning a lot about NodeJS and creating REST APIs. Also I like to ride bikes.

Find me around the web

mjolnir's People

Contributors

nlssn avatar

Stargazers

 avatar

Watchers

 avatar

mjolnir's Issues

Installation process via vhserver user

It would be great if this could be installed via the user called 'vhserver'.
This way you would not have to switch between vhserver and root accounts as mentioned in #5

Starting Bot on boot using systemctl

Is there a way to start this bot using systemctl

I tried a few things and got this error: /bin/sh: 1: ./arkserver: not found

My service file:
[Unit]
Description=Discord LGSM Manager Bot
[Service]
Type=simple
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
User=arkserver
Group=arkserver
ExecStart=node /home/arkserver/dcbots/gh-mjolnir/
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
[Install]
WantedBy=multi-user.target

PS:
I have changed the mjolnir script to match my user and path and it runs perfectly when starting manually.
manually meaning entering this command in terminal: node /home/arkserver/dcbots/gh-mjolnir/

padLevels error in Node v14

As mentioned here #3 (comment) there's a problem when starting up the bot. The following error is shown:
Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency

A quick google shows that this is a problem caused by using Node v14, and downgrading to v12 LTS will fix it.

However, the bot still runs after throwing the error. Fix someday.

question

its about config.json
{
"prefix": "!",
"token": "",
"required_role": {
"use": true,
"name": "trusted"
}
}

where to put role i cant get it is "trusted" ?

doesnt run

Helo there, bot doesnt run with forever, i fixed downgraded version and there is no error, but doesnt work, then tryed to run normaly with node bot.js and when i try to start server it says "/bin/sh: 1: .././vhserver: not found"

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.