collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Bot vs Bot commands.  (Read 29519 times)

0 Members and 1 Guest are viewing this topic.

Offline Hell

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Bot vs Bot commands.
« on: October 08, 2013, 03:25:10 pm »
Hi everyone!

Before I start I might ask if its even possible to make something like this. This could be some spam prevent system build in AO chat or something but.

Basically I'm trying the bot to send the command to another bot via module. I simply added a single line of code "send_output -> tell ($name, !command $text etc" ... to the main bot. This actually sends the command to the other bot. But it seems to be protected somehow or I have really no clue whats wrong.

In a main bot log it sends the message with the command but the other bot replies with a classic /tell otherbot !help which makes me more uncomfortable as long as all the permissions for that command are set to AN and the main bot is the other bots member.

Is there any limit in AO chat that blocks making bots to send output commands to execute them on other bots? Or is there any workaround for this?


Thanks in advance!

/Hell/Crocks
« Last Edit: October 08, 2013, 03:27:54 pm by Hell »

Offline GaRoN

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
Re: Bot vs Bot commands.
« Reply #1 on: October 21, 2013, 05:44:21 pm »
I s the bot registered as a Superadmin or as something that can give the 2nd Bot commands ??

Offline Tyrence

  • BeBot User
  • **
  • Posts: 41
  • Karma: +0/-0
Re: Bot vs Bot commands.
« Reply #2 on: April 18, 2014, 10:11:59 am »
The problem is probably that the send_output() function "colors" the text, so it actually looks something like this when sent to the other bot:

<font color=#ff44ff>!command some text

Which is probably why the other bot doesn't process the command.  I would look in the source code for send_output() and see if you can figure out how to send a raw message sans the coloring.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 289
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal