Jump to content

[Answered] Cron job python and discord.py


geozz

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...