ProgrammingTwitch IRC Twitch Bot / Tips & Tricks / Twitch API
Posted:

ProgrammingTwitch IRC Twitch Bot / Tips & Tricks / Twitch APIPosted:

9nty
  • Comment King
Status: Offline
Joined: Jan 26, 20168Year Member
Posts: 11,791
Reputation Power: 11040
Motto: 9nty.gg
Motto: 9nty.gg
Status: Offline
Joined: Jan 26, 20168Year Member
Posts: 11,791
Reputation Power: 11040
Motto: 9nty.gg
How to make your own successful streaming chatbot in 2020 using mIRC!
If you want a chatbot that has a subscriber alerts to show when someone subscribed, if you want your own custom commands for your stream my bot is ready to get used. Just comment below or message me via TTG PMs. The bot can connect over 120 channels one IRC server. Custom games like !8ball to troll your viewers, Let's make it happen!
Below I will be showing you set by step on how to connect your chatbot, name your own bot, connecting to the Twitch TMI servers, Connecting to many Twitch channels without getting disconnected, Setting up commands for your own bot, setting up your own subscription alert system for the streams you watch, coding tips and understand the mIRC language & so much more.


What is mIRC?
mIRC is a message chat reply system client that you can download today to get started. It's a very independent application that you can use especially good for Twitch if you want to set up your chatbot for your stream/or the streams you heavily moderator on for. mIRC isn't only to setup Twitch chatbots, it's more on the side of communicating with others, connecting to other servers. mIRC is a great community to get help with mIRC coding languages, you can use mIRC to work with other people with IRC networks. When you download the application you will be downloading the new update of mIRC just to let you know which is the v7.61. You must always download the update for mIRC otherwise your servers will be slow whatever server you host or run. It's a great example for chatbots you don't want a slow command system that you may run for your bot for an example. You want a fast independent bot for your streams that does the job fast.

mIRC also has a powerful scripting language that you can use in a few hours you just need to be committed which is a big goal especially learning a language that you're new. It can be annoying at times but there are lots of tutorials on Youtube you can visit. Feel free to DM me if you're stuck on a script. It has a clean, practical interface that is highly configurable and supports features such as buddy lists, file transfers, multi-server connections, IPv6, SSL encryption, proxy support, UTF-8 display, UPnP, customizable sounds, spoken messages, tray notifications, message logging, and more.



Get started!
How to download mIRC Application
This is beta guidance on how to download the application as there are people out there want to know how to download the application correctly. One error and there's options won't show for you so you need to follow these sorts of steps even though you may think it's easy even though it's pretty straight forward, so here are the steps you need to take to download the application correctly;

1. Download the application from mIRC Website
2. Open your Download Folder, click on the application and let the application run.
3. Click on the directory you want the application to save in /:C or /: D
4.
Click on "Save application on dessktop" and others boxes you wish you want.
Once you've downloaded the application successfully these are the instructions on how to connect to the Twitch server so follow carefully



How to connect to Twitch TPI Servers?

1. If you haven't got a streaming channel for Twitch I would recomend you making one otherwise this weill not work. Signup
2. Make sure you create a bot channel so you can manage and direct that channel to be your bot channel. You can connect your bot channel to any channel using channel ID BUT I will get into that further down the page so don't stress.
3. Make sure your bot channel is verified via your email (verification code)
4. Make sure you /mod your channel name so the bot works correctly, you can do that on your channel page. "/mod {username} If you don't do this your bot won't work for my understanding.


5. Open up on the left hand side top left in the application, click on "New Server" this image will show on screen;
https://i.imgur.com/hA1HHuY.png
6. Click on "IRCNet" it will drect you to a new page within the application
https://i.imgur.com/N6ERhqV.png
7. Once you've done that click on the "description box" and type in your description of your bot which is your name you would like to choose for your bot: Example "dah" or "dahBot"
8. "IRC Server" is the IRC server url that you need to use otherwise you bot can't connect to the twitch TPI servers you get the point, right? The url is "irc.twitch.tv"
9. The port is: "6667" no other port only that, make sure you enter in the correct port otherwise it's not going to work.
10. The "Password" is the auth which you can get your auth here PLEASE DO NOT SHARE YOUR AUTH OTHERWISE PEOPLE CAN GET ACCESS TO YOUR ACCOUNT!
11. Press "Ok" and then it should bring up a list of folders, it then should show your folder what you've named click on "Select"
https://i.imgur.com/3ytsmpJ.png
12. "Nickname" is your Twitch bot channel if you want to connect your account to be the bot channel type in the Nickname box your main channel ID.
13. "Alternative" is the name username you've chosen for your Nickname.
14. Click on "New Window" should be a small square box click on that and then click on "Connect"
Congratulations you've now successfully connected to the Twitch IRC servers using your mIRC chatbot. You have not finished yet there are a few things you need to do first.


If you want to join a channel which is a Twitch channel that's our main focus right now and how to join a channel is type in the rectangle box on the top of the application and type in "/join #thetechgame <--- That's just an example but you get the point, right?
More examples if you're confused with what I have written.
1. /join #9nty
2. /join #timthetatman
3. /join #lirik
4. /join #twitch
5. /join #callofduty
If you don't know or don't understand what I've mentioned you can follow this video to get a clear understanding of how to get up your own chatbot using mIRC. #1



How to use your Script Editor?

On the left-hand side of the application you should see a script editor icon, I will post this image so you know where to locate. You can click on the script editor and click on the "remote" tab which is left hand side of "Popups"
https://i.imgur.com/8vbu0RH.png

Once you're in the Script Editor you're pretty much ready to code so here it begins.



How to script your bot?

Making your chatbot to work what you want the bot to do is really easy, to be honest with you. Al you need to do is set your CAP REQ's and make sure you got your Twitch Client 3 } coded which should always be at the top of your Script Editor like so;

on 1:connect:{ /TWITCHCLIENT 3 }
on *:CONNECT:#channelname:{
  raw CAP REQ :twitch.tv/membership
  raw CAP REQ :twitch.tv/tags
  raw CAP REQ :twitch.tv/commands
  /debug @raw
}


The reason why you need your: twitch.tv/membership, twitch.tv/tags, twitch.tv/commands is that you're telling your bot to work with the CAP REQ with is connected to Twitch IRC API without this the bot wouldn't run correctly. The bot wouldn't recognize the commands, subscriber alerts and so on. This is an important note: always keep this on you maybe make a notepad of this script so you don't lose it, within this script for the # which is shown in the code above you have to put in the channel ID which is the name of the channel your bot is running on. This is a great example to follow if you want to connect to your channel (as long you've made a bot channel UNLESS you want your main Twitch channel to run as a bot you can do so) Basically, Whatever name you want your bot to run on type the name for the "#" example;

on 1:connect:{ /TWITCHCLIENT 3 }
on *:CONNECT:#thetechgame:{
  raw CAP REQ :twitch.tv/membership
  raw CAP REQ :twitch.tv/tags
  raw CAP REQ :twitch.tv/commands
  /debug @raw
}


Subscriber Alerts that is used for Twitch Prime, New Subs like Tier 1, Tier 2 & Tier3, also gifted subs!

RAW USERNOTICE:#channelname: {
  IF (($msgtags(room-id).key == YOUR_TWITCH_USERID) && ($istok(sub resub subgift submysterygift, $msgtags(msg-id).key, 32))) {


You can find your Twitch ID here
If you want to follow or paste the whole script and edit yourself; here





**Updated 4/3/20**
Basic beginner tips and tricks for mIRC
Just as you are able to surf the net with a few tricks to help make things easier, IRC is very similar. Below you will find some of the more common IRC commands that we use often.

/join
Type /join #channelname -- to join a channel of your choice
Example: /join #9nty
What it looks like:

/me
The /me is an action message.
Type /me 'does anything'
Example: /me waves hello

/msg
Type /msg nickname (message) to start a private chat.
Example: /msg dah Hey dah, how are you?
What it looks like:
-> *dah* Hey dah, how are you?

/nick
/nick changes your nickname
Example: type /nick newnickname (limit 9 characters)

/notice
A notice is used to send a short message to another person without opening up a private window.
Type /notice nickname (message)

/part
Type /part -- to leave one channel
Type /partall -- to leave all the channels you are in

/ping
Type /ping nickname. What this command does is give you the ping time, or lag time, between you and the person you pinged. Lag can be explained as the amount of time it takes for you to type your message and for others to read your messages. Unfortunately, lag is always a part of IRC, although most times it's not a problem, just a nuisance.
Example: /ping luv2quilt

/query
Similar to the /msg, except it forces a window to pop open.
Type /query nickname (message)
Example: /query Sofaspud^ Sooo....what's new?

/quit
Type /quit to leave IRC altogether. This disconnects mirc from the server.
Example: /quit Going out for dinner...nite all

/ignore
Unfortunately, there will be times when you don't want to talk to someone, or else someone may be harassing you.
By typing /ignore nickname 3, you will not receive anymore messages from that person.
Example: /ignore luv2quilt 3

/whois
Type /whois nickname to see a bit more information about another user. You'll see what server another person is using, or what their ISP is. Pretty helpful when you don't recognize a nickname that wants to chat. You may recognize the IP, (Internet Protocol) and then feel more comfortable carrying on a conversation. You'll also be able to see what other channels a person is in, which might be a good indicator if you really want to talk with them or not.
Example: /whois dah

/chat
This opens up a DCC/CHAT window to another user. What's nice about these is that you can continue to chat even if you get disconnected from your server.
Word of Caution: Do NOT accept dcc/chats nor dcc/gets from anyone that you don't know.
Type /chat nickname.

/help
There's one more very helpful command, and probably the one you'll use a lot when first starting out. In fact, I still use it quite a lot, and that's the built-in help menu of mIRC.
Type /help, you'll see the mIRC Help Menu open up. You can do a search from there, or you can type /help topic. Either way, a TON of information at your fingertips.
Example: /help Basic IRC Commands

The following 1 user thanked 9nty for this useful post:

Tom (03-03-2020)
Users browsing this topic: None
Jump to:


RECENT POSTS

HOT TOPICS