

We’re going to assume a basic knowledge of Python and functions for this post, and if you’ve taken our Introduction to Python on Linux course you should have all the knowledge you need for this basic IRC bot tutorial. Until he is ready to release his new Python content, however, I thought I might help tide you over with a fun Python project that I enjoy: Making an IRC bot.In this blog post, I’m going to cover how to create a basic IRC bot with Python 3. As we’ve previously announced, more is coming from our new instructor, Shiraz. Our students have made it very clear on multiple times how much they want more Python from us as well. I have everything under mIRC inclugind Autoget folder with Autoget.mrc inside.We’ve blogged some about IRC before and talked about the #LinuxAcademy channel on the Freenode IRC network.

The actual path is c:\Program Files (x86)\mIRC If you're only using your own scripts or ones designed to handle spaces or ones that don't use paths/filenames, it won't matter, but if you plan to try/use any other scripts (mainly scripts that have been around a long time), it can be better to have mIRC installed to a location without spaces, such as c:\mIRC\. This can cause those scripts to fail in one way or another on your system because you have mIRC installed to the program files folder. there are some scripts out there that are not designed to work in a path that uses spaces, or makes use of $shortdir to handle spaces. You'll have more files, but make sure these are at least set up this way.Īlso, just as a note on your choice of path.

Here's a small example of what you should see in your folder structure. **Remember that you should have mIRC closed when moving the mIRC.ini file, or at least close and reopen mIRC afterwards as it won't change the location until it's been restarted.Īlternatively, you can specify C:\ in the full path (the only thing you missed in your /load example) and it should load fine.Īs far as the script itself looking in the wrong location, that may be due to using a relative path or $mircdir rather than using $scriptdir if the script it trying to look in the script folder for something. You can then load the script using /load -rs Autoget\Autoget.mrc (no need for $qt() because it doesn't have spaces in the relative path).

Doing that should eliminate use of the Roaming folder and result in $mircdir being the same location as mIRC.exe. Is mIRC.ini in the folder with mIRC.exe or with the script? It should be in the same folder as mIRC.exe.
