mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2025
Posts: 2
D
Dusty Offline OP
Self-satisfied door
OP Offline
Self-satisfied door
D
Joined: Mar 2025
Posts: 2
i cant figure out why my irc bot wont respond to messages in twitch chats (specifically mine) when i type a trigger word. any advice? here's my code: [Linked Image from snipboard.io]

Joined: Jan 2012
Posts: 327
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 327


🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Joined: May 2022
Posts: 95
F
Vogon poet
Offline
Vogon poet
F
Joined: May 2022
Posts: 95
I'm not an expert, but I'm not sure about the second :
Try with
Code
on #yourchannel:PRIVMSG:!time: /msg #yourchannel <message here>

P.S.: If You use code, is more easy to quote and reply

Last edited by Fernet; 13/03/25 08:04 PM.
Joined: Mar 2025
Posts: 2
D
Dusty Offline OP
Self-satisfied door
OP Offline
Self-satisfied door
D
Joined: Mar 2025
Posts: 2
thank you for this, im still having problems making it respond, any more ideas?

Joined: Feb 2011
Posts: 469
K
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 469
Replace the #channel with the actual channel name.


; Syntax: !hello bob
; Output: Hello bob!
on *:text:!hello *:#channel:{ msg $chan Hello, $1 $+ ! }



; Syntax: !time
; $time returns the hours:minutes:seconds in 24 hour clock format.
; Output: The current time is 18:10:53
on *:text:!time:#channel:{ msg $chan The current time is $time }

Joined: Nov 2021
Posts: 136
Vogon poet
Offline
Vogon poet
Joined: Nov 2021
Posts: 136
Another example:

Code

On 1:text:!kb &:#:{
  if ($nick($chan,$me,~&@%) && $nick($chan,$nick,~&@%)) {  
    if ($address($2,2) !isban $chan) { mode $chan +b $address($2,2)  }
    if ($2 ison $chan)  { kick chan $2 Requested } 
  }
}




Link Copied to Clipboard