Running a python bot


Recommended Posts

Hey y'all!

I'm getting into programming with python now, and as a side project am making a discord bot in python.

I was wondering how to dockerize/run the script from my UNRAID server, so continuously.

It runs with python 3.6.6 and I have to be able to install libraries.


P.S. I have tried looking it up but I can't seem to find anything useful to my case yet.

Link to comment

Not a python guy.


But, you *should* be able to simply have your script prefaced with 


and make sure that its executable

chmod +x /path/to/file

and it should work from the command prompt.


Barring that, I would think that

python /path/to/file

would work also.  AFAIK python is included in unRaid

User scripts is a plugin that will allow you to execute any script on a schedule you choose (available within apps)

Link to comment
5 minutes ago, Cetje54 said:

Is it correct I can only install Python 3.6.2 via Nerdpack? Or can I download 3.6.6? If so, how?

I see that  is the version that it currently has available.    However if you raise a request in the NerdPack plugin thread it is likely it will be updated.


are you actually intending to make use of features that require 3.6.6?

Edited by itimpi
Link to comment

are you actually intending to make use of features that require 3.6.6?

not sure, but like to have the same version as my IDE is in for safety, however when I get PIP working with python3 in nerdpack I'll give it a try anyways. Do you know how to use PIP with python3? Now it uses python2.7 which was required to install if I wanted PIP  Everything works fine!

Edited by Cetje54
Link to comment
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.