So I have a code that I made to run a Discord bot. I know several people have used a raspberry pi to self host their Discord bot. I can run it from my tower or laptop using a .bat file. However, I can't launch the .bat file and no idea how I'm to run the bot since I regularly have my tower off when I'm not using it.
I have `dotnet DigitalPhoenixBot.dll` in the bat file in the location of the .dll file.

Extra info: The program is all on a USB Flash drive to prevent issues with the OS installed. This is using the Raspbian OS since I couldn't get the windows core to work.

As we are on the C/C++ section of this forum I presume your bot is written in C or C++.

If your bot is compiled and runs on a Windows machine then it will need recompiling on the Pi in order to run there. Your Windows machine is a Intel architecture processor so the binary executable will not run on the ARM processor of the Pi.

If your bot relies on Windows API's and DLLs then it will not run on Raspbian. It will need to be rewritten to use Linux libraries.

You could write your bot in a language that is more easily portable from machine to machine, C#, Python, Javascript, etc.

If your program is written in C# instead of C or C++ recompilation might not be necessary.

Just like Java, the .NET program should run as-is on the Raspberry Pi. Instead of a Java Virtual Machine (JVM) "Mono" has to be installed on Raspbian for .NET programs to work.

ghans

• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

That part wasn't clear that entering that in would get mono onto the pi. The one issue i do have is my bot won't be on the SD card. Well to be more accurate it will fill the sd card up easy. I do have some things stored. So i either need to change the code so that the file used to store data is on a flash drive while the rest is ran on the SD card.
If possible how do i get it to pull a program in other drives?
That brings me to this point. How do i figure out the Drives so i can direct my code to check for the file in the proper directory.

I doubt there is a BIOS screen to get drive info and the flash drive just comes up with the flash drive in a media folder.