mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2016
Posts: 4
M
mjozog Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Feb 2016
Posts: 4
When I write stuff into the bot it outputs the thing I wrote on twitch, however when I try to make the commands to work, it doesn't work.

Here were my scripts.
on *:TEXT:!yt:#:{msg # https://www.youtube.com/channel/UCgfZTU_Ey4SJvPc3LpQ2jlQ}
on *:TEXT:!ss:#:{msg # We shall see. If we don't see the sea, then we'll see. :P}
on *:TEXT:!mapping:#:{msg # Maybe. I'll think about it.}
on *:TEXT:!taiko:#:{msg # MJ will consider it}
on *:TEXT:!mania:#:{msg # SoonTM}
on *:TEXT:!ctb:#:{msg # Perhaps MJ will play Catch the Beat}
on *:text:!commands:#:{msg $chan MjOBot commands are !yt !ss !mapping !taiko !mania !ctb}
on *:TEXT:!MCommands:#:{msg $chan Mikuia commands are !1v1 !coins !level !roll !stats !uptime}

The scripts aren't working. What did I do wrong?

Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
The '{' can touch the last ':' of the event body, but '}' must be space seperated


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Feb 2016
Posts: 4
M
mjozog Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Feb 2016
Posts: 4
I did what you told me to do put it is still not working.

on *:TEXT:!yt:#:{msg $chan https://www.youtube.com/channel/UCgfZTU_Ey4SJvPc3LpQ2jlQ }
on *:TEXT:!ss:#:{msg $chan We shall see. If we don't see the sea, then we'll see. :P }
on *:TEXT:!mapping:#:{msg $chan Maybe. I'll think about it. }
on *:TEXT:!taiko:#:{msg $chan MJ will consider it }
on *:TEXT:!mania:#:{msg $chan SoonTM }
on *:TEXT:!ctb:#:{msg $chan Perhaps MJ will play Catch the Beat }
on *:TEXT:!commands:#:{msg $chan MjOBot commands are !yt !ss !mapping !taiko !mania !ctb }
on *:TEXT:!MCommands:#:{msg $chan Mikuia commands are !1v1 !coins !level !roll !stats !uptime }

Joined: Dec 2015
Posts: 148
Vogon poet
Offline
Vogon poet
Joined: Dec 2015
Posts: 148
Code:
on *:TEXT:!yt:#:msg $chan https://www.youtube.com/channel/UCgfZTU_Ey4SJvPc3LpQ2jlQ
on *:TEXT:!ss:#:msg $chan We shall see. If we don't see the sea, then we'll see. :P
on *:TEXT:!mapping:#:msg $chan Maybe. I'll think about it.
on *:TEXT:!taiko:#:msg $chan MJ will consider it
on *:TEXT:!mania:#:msg $chan SoonTM
on *:TEXT:!ctb:#:msg $chan Perhaps MJ will play Catch the Beat
on *:TEXT:!commands:#:msg $chan MjOBot commands are !yt !ss !mapping !taiko !mania !ctb
on *:TEXT:!MCommands:#:msg $chan Mikuia commands are !1v1 !coins !level !roll !stats !uptime


It works if "{" is touching the event's ":", but generally speaking you want to have a space on both sides of the character. On a single line events/aliases/whatever, you don't need "{" or "}" characters.

The code also executes faster without extra lines, "{" or "}" characters and so on.

Last edited by Dazuz; 14/02/16 09:45 PM.
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Sorry, that wasn't really clear, the '{' can touch the ':' but after it, you must have a space or a newline


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Feb 2016
Posts: 4
M
mjozog Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Feb 2016
Posts: 4
I got rid of all { and } but it is still not working.

Joined: Feb 2016
Posts: 4
M
mjozog Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Feb 2016
Posts: 4
I tried that as well... it is still not working.

Joined: Sep 2014
Posts: 52
Babel fish
Offline
Babel fish
Joined: Sep 2014
Posts: 52
Originally Posted By: mjozog
When I write stuff into the bot...

Sounds like OP is trying to trigger the commands in mIRC itself. You can't trigger on text events from a remote script using the mIRC client.


Link Copied to Clipboard