Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

Discord Bot Setup

Scheduled Pinned Locked Moved Discuss
10 Posts 5 Posters 472 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JLX89
    wrote on last edited by
    #1

    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!

    murgeroM subvenS 2 Replies Last reply
    0
  • murgeroM Offline
    murgeroM Offline
    murgero App Dev
    replied to JLX89 on last edited by
    #2

    @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!

    --
    https://urgero.org
    ~ Professional Nerd. Freelance Programmer. ~
    Matrix: @murgero:urgero.org

    J 1 Reply Last reply
    2
  • J Offline
    J Offline
    JLX89
    replied to murgero on last edited by
    #3

    @murgero I will give that a shot, thank you so much!

    M 1 Reply Last reply
    1
  • M Offline
    M Offline
    MisterJD
    replied to JLX89 on last edited by
    #4

    @JLX89 sorry for bringing up an older thread. But I stumbled across this and am looking for something exactly like this. Did you get any further with it, did it work with LAMP Stack?

    J 1 Reply Last reply
    1
  • subvenS Offline
    subvenS Offline
    subven
    replied to JLX89 on last edited by
    #5

    @murgero wow I never thaught about that. We might be able to install other brigdes like mautrix-telegram as well inside the LAMP stack.

    murgeroM 1 Reply Last reply
    1
  • J Offline
    J Offline
    JLX89
    replied to MisterJD on last edited by
    #6

    @MisterJD No, it’s been a while and IIRC it was working and the bot would show as “online” for around 30 seconds and it would crash. I suspect it could be done with some tweaks.

    1 Reply Last reply
    0
  • murgeroM Offline
    murgeroM Offline
    murgero App Dev
    replied to subven on last edited by
    #7

    @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.

    --
    https://urgero.org
    ~ Professional Nerd. Freelance Programmer. ~
    Matrix: @murgero:urgero.org

    murgeroM 1 Reply Last reply
    0
  • murgeroM Offline
    murgeroM Offline
    murgero App Dev
    replied to murgero on last edited by
    #8

    @murgero I forgot to mention - using the run.sh custom startup script cannot hang onto the cli session in the cloudron app. You MUST start the app with & at the end:

    /usr/bin/node /app/data/nodeapp.js & for example to run it in the background and allow run.sh to close so start.sh can run!

    --
    https://urgero.org
    ~ Professional Nerd. Freelance Programmer. ~
    Matrix: @murgero:urgero.org

    1 Reply Last reply
    1
  • girishG Do not disturb
    girishG Do not disturb
    girish Staff
    wrote on last edited by
    #9

    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
    
    murgeroM 1 Reply Last reply
    2
  • murgeroM Offline
    murgeroM Offline
    murgero App Dev
    replied to girish on last edited by
    #10

    @girish This is likely gonna be MUCH cleaner, thanks for letting us know!

    --
    https://urgero.org
    ~ Professional Nerd. Freelance Programmer. ~
    Matrix: @murgero:urgero.org

    1 Reply Last reply
    1

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.