Jump to content

Recommended Posts

Posted (edited)

Hi,

 

I want to run a musicbot for discord. This bot normally starts running /filepath/run.py

This bot uses discord.py etc, i think all modules are available, https://krydos2.heliohost.org/cgi-bin/modules36.py

 

But, the bot just dont start?

 

Cron job: 0 15 0 0 0 home/myname/Muziekbot1/musicbot-master/run.py
This bot can work on ubuntu, raspbian, windows and mac.

This is the bot: https://github.com/Just-Some-Bots/MusicBot

 

This is the official guide for ubuntu  16, but i do not know how to run that here. But i just uploaded the files, and added a cron for run.py
# Install build tools
sudo apt-get install build-essential unzip -y
sudo apt-get install software-properties-common -y

# Add external repositories
sudo add-apt-repository ppa:mc3man/xerus-media -y

# Install system dependencies
sudo apt-get update -y
sudo apt-get install git ffmpeg libopus-dev libffi-dev libsodium-dev python3-pip python3-dev -y
sudo apt-get upgrade -y

# Clone the MusicBot to your home directory
git clone https://github.com/Just-Some-Bots/MusicBot.git ~/MusicBot -b master
cd ~/MusicBot

# Install Python dependencies
sudo python3 -m pip install -U pip
sudo python3 -m pip install -U -r requirements.txt

 

 

Any idea how to get this working?

 

Regards

Edited by geozz
Posted

  sudo /home/geozz/Muziekbot1/MusicBot-master/run.sh   python /home/geozz/Muziekbot1/MusicBot-master/run.py

Not working

Posted

That'll never work because sudo requires root.

 

This script will not run here as it is a standalone program/daemon that also requires root access. We don't allow standalone programs, and would never remotely consider offering root access.

 

You need this: https://heliohost.org/partners/vps to run that.

Posted

Your links doens't work :S

That link works for me too.

 

Another thing I wanted to point out is your instructions will only work on Ubuntu/Debian and other distros that use apt. Our servers, for instance, run Centos so apt-get and apt don't even exist. Keep these OS's in mind when you create your VPS.

Posted

Nope. cPanel/EasyApache actually does the build for PHP I believe...they apparently use the redhat configurations even when running on CentOS  :P

 

Straight from WHM (yes we know it's outdated, we avoid updating whenever we can because all the custom stuff breaks every time we do):

CENTOS 7.4 x86_64 vmware – tommy  cPanel & WHM 64.0 (build 36)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...