IPB

Welcome Guest ( Log In | Register )

2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 
Reply to this topicStart new topic
> Local Bot To Bot Project, In progress
Call
post Apr 24 2009, 12:56 AM
Post #1


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



Bot To Bot
    Currently i'm thinking of these options:
  • What should the bot connections be.
  • How would more then 2 bot's have commands
  • what should the command be.
  • should it support scripts?
  • should it trigger subs when they trigger on bot#1 to bot#2 ?(could be problems with some scripts then)

All suggestions accepted(will start as soon all these questions are discussed and maybe found a better way to handle the script)
-Call



--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
The-Black-Ninja
post Apr 24 2009, 01:02 AM
Post #2


Pure Sex
********

Group: Moderators
Posts: 7,756
Joined: 13-August 06
Member No.: 7,372



What's your ultimate goal with this?


--------------------
IPB Image

-My Plugins :: Thanks Pyro :)
IPB ImageIPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Apr 24 2009, 01:05 AM
Post #3


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



QUOTE(The-Black-Ninja @ Apr 24 2009, 09:02 AM) *

What's your ultimate goal with this?


i got some free time and i decided to make this to help other scripters to make simple scripts using this to throw the data to the other bot(s) smile.gif

This post has been edited by Call: Apr 24 2009, 01:05 AM


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
The-Black-Ninja
post Apr 24 2009, 01:06 AM
Post #4


Pure Sex
********

Group: Moderators
Posts: 7,756
Joined: 13-August 06
Member No.: 7,372



No no, I mean, what sort of stuff will two bots be doing? Are they talking to each other in any way or...?


--------------------
IPB Image

-My Plugins :: Thanks Pyro :)
IPB ImageIPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Apr 24 2009, 01:13 AM
Post #5


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



QUOTE(The-Black-Ninja @ Apr 24 2009, 09:06 AM) *

No no, I mean, what sort of stuff will two bots be doing? Are they talking to each other in any way or...?


they give all information about them so the other bots know what that bot is doing and then the scripts can handle all thats sent back and forward, example if a user joins the channel the other bot know it, it wont trigger the join sub but it will trigger some custom subs maybe. (still thinking about this one)


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Snap
post Apr 24 2009, 03:13 AM
Post #6


The following post is supplementry information
*****

Group: Global Moderators
Posts: 2,922
Joined: 29-January 06
From: Eugene Oregon
Member No.: 31



Hmm, I think I'll cleanup my DQD code and release it tomorrow as-is. You might find some of it's methods helpful.


--------------------
~Life is all busy and stuff right now. - Car accident, lots of dr. appointments... Other stuff too. I still <3 StealthBot.net - - I'll be around.
Thinking about PMing me? Post it instead! CCX Forums | SnapNJacks Trivia Forums
IPB Image
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Apr 24 2009, 05:19 AM
Post #7


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



New idea for the database its going to be a mdb(sql) on selected location where all bots connect and where they will have a row each where there bot name is in lower case, and they will have splitted so they only see the rows with there bot name, so the messages will be in another row. smile.gif

CODE
Sub Event_PressedEnter(Text)
   Execute("Call BTB_PressedEnter(" & Text & ")")
End Sub

Sub BTB_PressedEnter(Text)

end sub


wont trigger in other scripts. :/ any help?


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
The-Black-Ninja
post Apr 24 2009, 08:52 AM
Post #8


Pure Sex
********

Group: Moderators
Posts: 7,756
Joined: 13-August 06
Member No.: 7,372



That's exactly what my queue share system does; common database that gets divided between the bots and each bot takes a message in the order the messages arrived. I don't have it like what you're doing though, I have it something like this:
CODE
Set aa = .Execute("SELECT * FROM `queue` WHERE `name` = 'Ninja-Security'")
Do Until aa.EOF
   Dsp aa.Fields(1), aa.Fields(2), aa.Fields(3), vbGreen
   aa.MoveNext
Loop


It's actually nice how I set it up because instead of just making the first half of the DB one bot and the other half the other bot, they alternate Scout , Security, Scout, Security. That way, the lag is reduced as much as possible and the next message won't fire until the previous bot has sent its message.

This post has been edited by The-Black-Ninja: Apr 24 2009, 08:53 AM


--------------------
IPB Image

-My Plugins :: Thanks Pyro :)
IPB ImageIPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Faedrik
post Apr 24 2009, 10:17 AM
Post #9


Full Member
***

Group: Members
Posts: 100
Joined: 28-June 06
Member No.: 5,875



I've done something similar to that, The-Black-Ninja, how often do you have the bot checking the database for a new queue to output?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
The-Black-Ninja
post Apr 24 2009, 10:33 AM
Post #10


Pure Sex
********

Group: Moderators
Posts: 7,756
Joined: 13-August 06
Member No.: 7,372



Every second, each bot checks the database. I've also maintained the priority of each command; bans and kicks are not sent to the database because since those are internal commands, they get moved to the top of the queue regardless of what you do.

If I decide I need to do something like: AddQ "Test", 50 and so forth, the database will re-arrange according to priority first, then once all the higher priority messages are gone, the database will start to re-arrange normally as I described above.


--------------------
IPB Image

-My Plugins :: Thanks Pyro :)
IPB ImageIPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Apr 24 2009, 10:40 AM
Post #11


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



QUOTE(The-Black-Ninja @ Apr 24 2009, 06:33 PM) *

Every second, each bot checks the database. I've also maintained the priority of each command; bans and kicks are not sent to the database because since those are internal commands, they get moved to the top of the queue regardless of what you do.

If I decide I need to do something like: AddQ "Test", 50 and so forth, the database will re-arrange according to priority first, then once all the higher priority messages are gone, the database will start to re-arrange normally as I described above.


so ninja you already made this or (didn't get quite what u posted in the last one)


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
The-Black-Ninja
post Apr 24 2009, 10:42 AM
Post #12


Pure Sex
********

Group: Moderators
Posts: 7,756
Joined: 13-August 06
Member No.: 7,372



No I made this one already. I stopped for a while, but I finished it about 4 or 5 weeks ago during some downtime from school and the AGP.


--------------------
IPB Image

-My Plugins :: Thanks Pyro :)
IPB ImageIPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 17th July 2019 - 07:18 PM
Skin by Andrea
Website Legal Information | Hosted by LunarPages