diff --git a/LICENSE b/LICENSE index 486036a..5f3d407 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017 +Copyright jakerunsdnd (c) 2017-2018 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/config.json b/config.json index 76c1d86..4d4665c 100644 --- a/config.json +++ b/config.json @@ -2,5 +2,6 @@ "token": "keep it secret, keep it safe", "botkey": "!", "defaultChannel": "golemworks", + "activeChannels": ["golemworks", "bot", "todo implement this"], "gameStatus": "several RPGs at once" } diff --git a/daemon.sh b/daemon.sh deleted file mode 100755 index 0dfad60..0000000 --- a/daemon.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -PATH="$PATH:/user/bin" -LOCK='./daemon.lock' -LOG='./pidaemon.log' - -# Check for a nodemon process, and if there isn't one, run it -if [[ -f $LOCK ]]; then - echo "$(date): WARN Already summoning!" >> $LOG -else - touch $LOCK - pgrep node -a || absent=true - if [[ $absent ]]; then - echo "$(date): WARN No nodemon found, summoning..." >> $LOG - npm run daemon >> $LOG & - else - echo "$(date): OK Running as expected" >> $LOG - fi - rm $LOCK -fi