This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
user:dm005264:start [2010/03/09 00:54] – dm005264 | user:dm005264:start [2010/03/09 00:54] (current) – dm005264 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | [[category: | ||
+ | =====Instructions to create your own bot===== | ||
+ | ===This is how I created my bot, which you can find on the # | ||
+ | |||
+ | ===First of all...What is a bot??=== | ||
+ | An IRC bot is a set of scripts or an independent program that connects to Internet Relay Chat as a client, and so appears to other IRC users as another user. An IRC bot differs from a regular client in that instead of providing interactive access to IRC for a human user, it performs automated functions. | ||
+ | |||
+ | ===Getting started=== | ||
+ | The easiest way to start a bot is to use an existing program that's been used and refined for many years. | ||
+ | |||
+ | ==Where do you get the eggdrop program?== | ||
+ | I downloaded my eggdrop program from the website www.eggdrop.org. | ||
+ | |||
+ | **Download and installation to your shell** | ||
+ | |||
+ | -Go to the website mentioned above and go to the " | ||
+ | -Notice the zip file **eggdrop1.6.19+ctcpfix.tar.gz**\\ | ||
+ | -Open up a session in lab46 and type the command //wget// and a space\\ | ||
+ | -Copy the URL address for **eggdrop1.6.19+ctcpfix.tar.gz** from the website and paste it in after the //wget// command and hit enter\\ | ||
+ | *This will download the zip file to your shell\\ | ||
+ | -To unzip the file, type the command //gunzip eggdrop1.6.19+ctcpfix.tar.gz// | ||
+ | -Now, to unzip the .tar file all you have to do is type //tar zxvf eggdrop1.6.19+ctcpfix.tar// | ||
+ | -Type the command //cd eggdrop1.6.19//, | ||
+ | -Type the command // | ||
+ | *Wait for the file to configure\\ | ||
+ | -Type the command //make file//\\ | ||
+ | -Type the command //make//\\ | ||
+ | -Type the command //make install DEST=~/ | ||
+ | *This will create a new directoy name **botdir**\\ | ||
+ | - That completes the installation, | ||
+ | |||
+ | **Modifying your configuration file** | ||
+ | - Locate the file eggdrop.conf inside your botdir directory\\ | ||
+ | - Rename this file to something like [your bot's name].conf\\ | ||
+ | - Open up the config file using VI. An example of the command for this is //vi mr_roboto.conf// | ||
+ | - Now...the config file is large (over 1300 lines long) you are going to have go through this line by line and read what lines to change. | ||
+ | - **Here are some of the things you'll have to change/ | ||
+ | * Line 1: modify this line to the full path to the executable files for you eggdrop\\ | ||
+ | *__Note__: Make sure you keep the **#!** in front of your path name\\ | ||
+ | *Line 26: change the name of the bot to what you want to name your bot\\ | ||
+ | *Line 176: Change this to [your bots name].user | ||
+ | *Line 199: If you want your bot to have a message of the day (MOTD), then make sure this line is un-commented\\ | ||
+ | *__Note__: You will have to go into the motd file and personalize the the contents of the MOTD\\ | ||
+ | *Line 351: Change the owner to yourself\\ | ||
+ | *Line 408: You must comment this line out or your bot wont work\\ | ||
+ | *Line 504: Change the channel to **# | ||
+ | *Line 504 to 524: Un-comment each line\\ | ||
+ | *Line 513:remove all text between the brackets - this line should read **auto-op {}**\\ | ||
+ | *Line 796: If you want an alternate bot name then set it here\\ | ||
+ | *Line 800: set the real name to be displayed on the IRC\\ | ||
+ | *Line 812: Set default port to 6667\\ | ||
+ | *Line 824: Set the server name. example for this is **set servers {irc.offbyone.lan}**\\ | ||
+ | *Line 1024: change this etting to 1\\ | ||
+ | *Line 1206: change this to your root directory for file systems\\ | ||
+ | *Line 1264: Comment this line out or your bot wont run\\ | ||
+ | *Line 1341: Insert any additional scripts you want your bot to run - example //source scripts/ | ||
+ | *__Note__: you must have the scripts you're adding in the scripts directory to actually run\\ | ||
+ | **Phew....that covers the modification to the configuration file. Now onto getting you bot up and running on IRC and making yourself the bots master**\\ | ||
+ | |||
+ | **Getting your bot up and running in an IRC** | ||
+ | - Open up an IRC screen and type the command ///join # | ||
+ | - Type the command ///names//, you should notice your bot's name there\\ | ||
+ | - Type the command ///dcc chat [bot's name]//\\ | ||
+ | * This will open a new (private) channnel for you and your bot to talk to one another. | ||
+ | -The bot will ask for your name\\ | ||
+ | -Then it will ask for you to create a password\\ | ||
+ | -Now type " | ||
+ | **Now..Let' | ||
+ | - Go to the website www.barkerjr.net/ | ||
+ | - Perform a //wget// on the version 2.7 sourcecode\\ | ||
+ | - Go to the " | ||
+ | - Follow the steps under the **Installing(non-Windrop)** section\\ | ||
+ | **That' | ||
+ | *__Note__: if your bot keeps trying to become the op of the channel then just go into your botdir and delete all .chan files. | ||
+ | | ||
+ | ==This wiki page is a "Work in Progress" | ||
+ | |||
+ | |||