mIRC Home    About    Download    Register    News    Help

Print Thread
#249161 16/11/14 02:37 AM
Joined: Nov 2014
Posts: 13
A
Pikka bird
OP Offline
Pikka bird
A
Joined: Nov 2014
Posts: 13
I have a few scripts set up, what i want to know if there is a way that i can have different scripts for different channel, and also if a user types !join in the channel, it will join there channel and also stay in other channels.

Its for a twitch chat bot

Joined: Jun 2014
Posts: 248
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Jun 2014
Posts: 248
Sigh? You can specify a specific channel in the event trigger such as
on *:text:!trigger:#specificchannel:

You can use if statements

If ($chan != specificchannel) { return }
or
If ($chan == specificchannel) { do stuff }

You can populate a list of channels to do things in via variables, tokens, ini, hash tables and check against that list before proceeding.

a !join script is easily searchable

Joined: Nov 2014
Posts: 13
A
Pikka bird
OP Offline
Pikka bird
A
Joined: Nov 2014
Posts: 13
Could you maybe help me create the script, im not really an expert and creating the scrpits

Joined: Nov 2014
Posts: 10
A
Pikka bird
Offline
Pikka bird
A
Joined: Nov 2014
Posts: 10
My suggestion for learning is to look at some code and there are some tutorials on youtube that help out with the basics. Also try looking for some of the code you want by using the search function of this website. What exactly do you want your bot to do?


Link Copied to Clipboard