Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7937643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:34:21+00:00 2026-06-03T22:34:21+00:00

I’m a noob in mirc scripting, and I need some help. there’s 2 irc

  • 0

I’m a noob in mirc scripting, and I need some help.

  1. there’s 2 irc channels. let’s call then #channel1 and #channel2;
  2. There’s 2 bots. One is mine, let’s call him “mybot” (my bot is in both channels). The other bot is from a third person, let’s call him “otherBot”;

What I need is… let me make an example to better explain.

a) in #channel1 some user type:

[14:38:48] <@someuser> !user xpto

At this time, “mybot” is in both channels. he reads the command “!user*” and copy/paste it in #channel2, where the “otherBot” will recognize the command “!user*” and will paste some information about this command.

b) so, in #channel2 it will append something like:

[14:38:50] <@ mybot > !user xpto
[14:38:52] <@ otherBot > User name is xpto and he likes popatos.

Now I want that “mybot” reads the information provided by the “otherBot” and then paste it on #channel1

c) so, in #channel1:

[14:38:54] <@ mybot > User name is xpto and he likes popatos.

So far I have the fowling code in my remote:

on *:TEXT:!user*:#channel1 {
  /msg # channel2 $1-
}

on *:TEXT:User name*:#channel2 {
  if $address($nick,2) == *!*@otherBot.users.gameea {
    /msg # channel1 $1-
   }
 }

This works fine, but have a problem: if someone else ( not “mybot” ) type “!user kakaka” in #channel2, “mybot” will also copy/paste the information provided by the “otherBot” and then paste it on #channel1. And I only want that “mybot” copy/paste only the information that “mybot” ask to “otherBot”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T22:34:23+00:00Added an answer on June 3, 2026 at 10:34 pm

    A very simple (but not a particularly nice) way of doing this could be to set a global variable when someone types !user in #channel1, and check whether or not this is set in the other part which is listening on #channel2. For example:

    on *:TEXT:!user *:#channel1: {
      set %repeatUser 1
      msg channel2 $1-
    }
    
    on *:TEXT:User name*:#channel2: {
      if ($address($nick,2) == *!*@otherBot.users.gameea && %repeatUser == 1) {
        unset %repeatUser
        msg #channel1 $1-
      }
    }
    

    This isn’t a perfect solution, since if the bot says something else between the time it takes for the script to send ‘!user’ to the other channel and for the bot to respond, then it will print out that reply instead of the one for your request, but this is only relevant if #channel2 is ridiculously busy, otherbot is very laggy, or it just so happens that both your bot and someone else type !user on #channel2 within a fraction of a second of eachother.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

noob here and need help from the pros... i am doing a voice record
I'm a noob in android, and I need some hints to understand how to
noob Android/JSON person here. I hope someone might help me? I've looked and looked
Another noob question that seems like it should be simple: Thanks to the help
Noob to Subversion, so please bear with me. Is there a way to get
Emacs noob here, For some reason, when I try to Open a existing C++
This sounds like a noob question for me but I need to ask it.
Noob here.... I cloned a git and then created a new branch in it.
Noob here. I have a rails app that has users and postings. I need
Noob here getting stuck and probably doing something stupid and would appreciate some guidance.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.