Need reference or documentation for writing python scripts for the hub

Asked by John Smith

Hey guys,

So, I run an ADCH++ hub for me a few of my friends and I want to be able to implement a couple of my own programs for it. I know python pretty well and I wanted to write my own scripts that would, for example create custom commands in the hub. I was wondering if A: this was possible, and B: whether there is some form of documentation that I could use to write this script. As of right now, the only information that I could find is in the ADCH++ Expert Guide, but the example given in that case is not nearly sufficient to explain how the interface works and what other functions are there. I was hoping someone could recommend a site with either documentation or more extensive examples.

As an afterthought I wanted to implement the "+releases" command that would tell someone of all the new files that have been introduced to the hub. I know this has been done before, but Google searches have proven fruitless. I was wondering if someone could point me to some information on how to set that up?

Thanks a bunch in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
ADCH++ Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
poy (poy) said :
#1

ADCH++ has many Lua scripts but Python development hasn't quite taken off, although there are a few interesting scripts. as a result, there isn't much documentation; the best i can think of is to go by example with some basic scripts that are in the ADCH++ repository: <http://bazaar.launchpad.net/~dcplusplus-team/adchpp/trunk/files/head:/pyutil/>. <http://adchpp.sourceforge.net/doc/index.html> (automatically generated doc from the ADCH++ source code) may also be of some help, though it's slightly out-dated.

you may want to ask on <http://www.dcbase.org/forums/>; there is an interesting set of Python scripts written by Lanowen that may be of good use: <http://www.dcbase.org/forums/viewtopic.php?f=38&t=774>

Revision history for this message
poy (poy) said :
#2

note also that several release bots have been written in the past for NMDC hubs; i'd look for one on <http://board.ptokax.ch/> and hook it up with ADCH++-PtokaX (Lua script) <https://launchpad.net/adchpp-ptokax>. that would be the easiest solution in my opinion.

Can you help with this problem?

Provide an answer of your own, or ask John Smith for more information if necessary.

To post a message you must log in.