Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I auto ping people and tell them their ping time?

Auto people ping time
0
Posted

How do I auto ping people and tell them their ping time?

0

For this subject, you’ll need 2 simple lines. When a user says !ping in any channel you’re on, you will automatically ping them, and then notice them with their ping reply time. Put these lines into remotes: on *:text:!ping:#: { ctcp $nick ping } on *:ctcpreply:ping*: { if ($2 isnum) { notice $nick Your ping reply was $duration($calc($ctime – $2)) } } You may choose a different word to make it trigger, but these 2 events will get the job done. Notice in the 2nd line that it checks if $2 is a number before replying. If it isn’t a number and you let it go through, the user would recieve some strange reply, which we don’t want.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123