User Control Panel
Advertisements

HELP US, HELP YOU!

Botwork service example

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Services
View unanswered posts
Author Message
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Thu Nov 04, 2004 6:43 pm    Post subject: Reply with quote

Attached is a zip containing an example Botwork XML/Simple service. The zip consists of a cgi, an XML service definition file and the Botwork modules. This is intended for those few of you who have a real interest in what Botwork is all about and how it works. This example service is running on Botwork here.

A Botwork Simple service is nothing more than a cgi that takes text in and spits text back. You can test the simple version of this service here. Right now, simple services can't be registered, that's because they're fairly new and I haven't written the registry code for that.

A Botwork XML service is much more powerful, though this example is very simple. It sends XML to and from the service. XML Services can register and unregister themselves on Botwork or any other registry. They must have a definition file, which the service writer creates. Docs are very thin right now, you'll have to read the cgi and module code for now to see how it works. Most importantly, you create handlers for your service that do the actual interesting work of looking up data or fetching data from another site or performing some other action. In the example, you'll see I set one handler, called get_reply, which works like a Trigger.

Anyway, I know there are only a few people on here who are really interested in this, but please ask me questions and I'll start working on documentation. Also, I'll release an example Botwork Client soon too, so you can see how easy it is to use services in your bot or in other services. Wink
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Services All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group