You can use an existing bot framework such as Supybot, often written in Python, or create your own if you know a programming language. Configure the bot with a server and port, then connect it to the IRC network. Many IRC bots run best on Linux-based systems.