Discord Bot Setup
-
Hello All!
I'm looking at trying to setup the Bastion Discord Bot. So from the looks of it, it can be run on Docker. Am I correct in assuming that the easiest way to get this up and running would to package it up as a Cloudron App using the Example provided by Cloudron?This would be my first adventure trying to package something up to use.
Thanks!
-
@jlx89 Since the bot runs on Node you might be able to just spin up a LAMP stack app (which includes nodejs) and use the run.sh feature (RE: https://docs.cloudron.io/apps/lamp/#custom-startup-script) so you may not need to take the time to learn and then package a full app for this.
That said if you still would like to package an app for this for whatever reason I am more than happy to help!
-
@subven Not sure if the LAMP app still supports it but I suspect it does. NodeJS, python, and PHP I believe LAMP can handle to at least some degree.
More advanced NodeJS apps will not work though - a basic bot like OP wanted would however so long as you run it with some time of supervisor like node-forever.
-
-
Since 7.2, you can also run a "service" using the cron section - https://docs.cloudron.io/apps/#cron .
So:
@service /usr/bin/node /app/data/nodeapp.js