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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
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
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. Discord Bot Setup

Discord Bot Setup

Scheduled Pinned Locked Moved Discuss
10 Posts 5 Posters 1.7k Views 5 Watching
  • 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
      • J JLX89

        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 Offline
        murgeroM Offline
        murgero
        App Dev
        wrote 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. ~

        J 1 Reply Last reply
        2
        • murgeroM murgero

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

          J Offline
          J Offline
          JLX89
          wrote on last edited by
          #3

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

          M 1 Reply Last reply
          1
          • J JLX89

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

            M Offline
            M Offline
            MisterJD
            wrote 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
            • J JLX89

              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!

              subvenS Offline
              subvenS Offline
              subven
              wrote 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
              • M MisterJD

                @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 Offline
                J Offline
                JLX89
                wrote 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
                • subvenS subven

                  @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 Offline
                  murgeroM Offline
                  murgero
                  App Dev
                  wrote 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. ~

                  murgeroM 1 Reply Last reply
                  0
                  • murgeroM murgero

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

                    murgeroM Offline
                    murgeroM Offline
                    murgero
                    App Dev
                    wrote 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. ~

                    1 Reply Last reply
                    1
                    • girishG Offline
                      girishG Offline
                      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
                      • girishG girish

                        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 Offline
                        murgeroM Offline
                        murgero
                        App Dev
                        wrote 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. ~

                        1 Reply Last reply
                        1
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                          • Login

                          • Don't have an account? Register

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