mIRC Home    About    Download    Register    News    Help

Print Thread
bot help #114541 15/03/05 08:11 AM
Joined: Jan 2005
Posts: 25
L
LordoftheX Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Jan 2005
Posts: 25
I am trying to get my bot to do a /me command after I send it the command

on *:TEXT:-action *:?: { /raw ctcp action #channel $2- }

since just doing /me won't work, I tried doing a /raw command, but obviously I am doing something wrong

::03:05:: -> Server: ctcp action #channel does some action
-
ctcp Unknown command

Re: bot help #114542 15/03/05 08:51 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Use describe /describe #channel waves

Re: bot help #114543 15/03/05 09:22 AM
Joined: Mar 2005
Posts: 212
N
NeUtRoN_StaR Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
if ur going to do it through a msg your going to have to specify a channel
or i guess you could use active
lets say your going to specify
Code:
on *:text:-action *:?:{
describe $$2 $$3-
}

if im doing this right
and i like to think i am
then youll do -action #channel flops about like a penguin
then it will take -action as $1 #channel as $2 and flops about like a penguin as $3-
hopefully this works for u

Re: bot help #114544 17/03/05 10:16 AM
Joined: Dec 2002
Posts: 1,237
T
The_Game Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
Here's a sample from my mIRC bot. Its basic but it seems to work pretty well for me. I use 2 separate mIRC clients to connect to the server one is me the other is the bot. To use the command you need to use the !act command. For example if you want your bot to eat an apple you would type the command: /msg botname !act eats an apple

The bot would then reply this: botname eats an apple

If you just type /msg botname !act

The bot would send you the notice: YourNickname You need to specify what action I am supposed to do.

Code:
On *:Text:*:?: {
  set %owner [color:blue]YourNickname[/color]
  set %channel #[color:blue]YourChatroom[/color]
  if ($nick == %owner) {
    if (!act isin $1-) {
      if ($2- == $null) {
        .timer 1 1 .notice $nick You need to specify what action I am supposed to do.
        halt
      }
      else {
        .timer 1 1 .describe %channel $2-
      }
    }
  }
}


All you gotta do is replace the blue highlighted text to your own name and chatroom and it should work fine. I only used this as an example from my bot. You can edit to your preference. Hope this helps.