How to make a chatbot on mirc

By foxdream2000angel

Hi!  It’s me foxdream2000angel from Justin tv! and how’s everyone?

Well, today, I’ll talk about how to make a bot on mirc. Because people ask me the same question very often.

Fist of all, you don’t need any special programing  experience or knowledge to make a bot that works on mirc using most typical commands as you know very well like..

!topic
( you type like this in a chatroom )

chatbot: Topic – The broadcaster loves eating Sushi!
(chatbot answers the posting)

You don’t need to take even 3 min to make the mirc script that works like above.

And now I’ll tell you how to make it!

To be able to use a bot account in JTV chat rooms on mIRC client, the bot’s account must be added in White List in JTV previously.  You can request this from the link below.

http://www.justin.tv/p/whitelist

1. Start your mIRC client.
2. File -> Select Server -> add
3. Add the server description like below for example.

mircbot1

* Description ( I usually use a jtv chat name that I want to use my bot in.)

*IRC Server = Server IP address of a chat you want to use your bot. This differs from chatrooms.

*Ports: Use 6667 always.

*Group: No need to input.

*Password: The same password as you made for your bot to be able to log on JTV chat.

And after completing this,  push OK button and the dialogue will close.

Select the server you added now and push ’select’ button.

The new dialogue appears and you can input data like below.

mircbot2

 

Full Name: Name of your bot

Email Address: the same as you used for your bot regeistered on Justin TV.

Nickname:Name of your bot

Alternative: Can be empty.

After filling these, push ‘Connect’ button.  A new dialogue appears. Input the chatroom name you want use your bot in like below.  Now push ‘Join’ button.

mircbot3

Now your bot is in a chatroom you want to use it!

The process above is the same as you log on JTV chat with your own account even if you don’t use a bot.  No problem if you know how to use mirc chat, I assume.

Ok. now I’ll start teaching you how to make a script for your bot.

While your bot is in the chat you want to use, see the mircdisplay. You’ll find it displayed like below.

mircbot4

And follow the instruction below.

1. Move your PC’s mouse in the center of the chat screen.

2. Push ‘Alt’ and ‘r’ . ( A new window appears after this ) 

3. Look the new window carefully. You’ll find 5 tabs named – Aliases, Popups, Remote, Users, Variables. Right?

4. Select ‘Remote’ tab.

5. You can write mirc scripts here in Remote window for your bot.

6. At default, there are no scripts written in this window. ( If you see some scripts in there, you can delete them in the same way like you delete text lines.

Now we start scripting!

7. Just type a 3-line script as below.

ON *:TEXT:!topic:#:{

msg $chan Topic – The broadcaster loves eating Sushi!

}

8. When finished, push ‘OK’ button below the script window. I’ll tell you the meaning of the script later. Now we check how this script works in the chat!

9. Now use your internet browser, log on to JTV with your usual account name.

10. Go to the chat where your bot is in.  You’ll find your bot name in there ( in User List. )

11. Type a bot command as below.

!topic

12. You’ll find your bot answer displayed in there automatically!

Then let’s go back to the mirc window.  move the mouse in the center of the window and open the script window again. ( To do this, push ‘Alt’ and ‘r’ as I told you like above. And select ‘Remote’ tab. Remember?  )

13. After the 3-line script you’ve already made, add another 3-line script as below.

ON *:TEXT:!topic2:#:{

msg $chan Topic2 – The broadcaster loves singing!

}

14. Save the script again.

15. Go back to the browser and type a new command as below.

!topic2

16. You’ll find another bot message displayed in the chat automatically.

17. You can add as many scripts as you want by repeating the process above.

18. Meaning of the scripts we used here.

See the first line of the first 3-line script.

ON *:TEXT:!topic:#:{

This means – When someone in the chat has typed a text as ‘!topic’.

( ‘*’ after ‘ON’ means anybody in the chat. ‘#’ after ‘topic:’ means ‘in the chat the bot is in now. )

And see the 2nd line.

msg $chan Topic – The broadcaster loves eating Sushi!

This means – display this message, ‘Topic – The broadcaster loves eating Sushi!’

$chan means this channel.

And see the 3rd ( last line)

}

This means the end of the script.

How easy to make a bot script it is!  (  Isn’t it? lol )

AND PLEASE BE CEARFUL!

When other bots ( like vaughn, lighter, etc. ) are in the chatroom, some of your bot commands might not work because this is by using the same commands those bots are also using. In this case, you can change your commands to fix the problem.

5 Responses to “How to make a chatbot on mirc”

  1. mercerd Says:

    interesting material, where such topics do you find? I will often go

    • foxdream2000angel Says:

      I got related data by searching internet from zero and put them together to make what I want to make. you can find those useful data on google website with using keywords like ‘mirc script’

  2. cynergy Says:

    Informative Foxdream would you recommend this to a newby to mIRC….Just asking because I would like to make a bot on JTV.
    I have requested a whitelist and downloaded mIRC

  3. Justin TV mIRC bot scripting – ban? 10-min timeout? on Caps, URL, etc… « Foxdream2000angel’s Weblog Says:

    [...] http://foxdream2000angel.wordpress.com/2009/06/22/how-to-make-a-chatbot-on-mirc/ [...]

Leave a Reply