Request System V2

Release your script here.
State:
- Author
- What it does
- Perhaps a little guide.
- Also, if the snippet is of any use to the community, it has a chance of getting posted on the main page, so don't hesitate to submit/ask!

Request System V2

Postby jonlar » Sat Jul 12, 2008 11:11 am

I have a kinda old Request System form a "friend" of mine.
I just post it here. There is NO Support and if u get Errors, hopefully sb. HERE can fix it.
Its just for the Quakenet, but has the most u need. Checkflags, Status etc...

atm its for Q & L services, so it needs some recode. The Scripter gave his OK for "killing Errors" and -if needed- recode
Maybe its just an inducement for a better request system. Whatever. Its all in German, so if u need a Translation i´ll try it.

-> Download <-

Installation (German)

## Install ##

1. Scripts downloaden

http://powl.po.funpic.de/tcl/botservice.zip

2. Settings bearbeiten

settings.tcl

Hier kann man alles bearbeiten, was man braucht...
Also einmal von oben bis unten durcharbeiten.

types.tcl

Hier kommen die Bot types rein!
Sind ja zwei als beispiele angegeben, gegebenfalls ändern oder löschen.

Den rest der Files NICHT bearbeiten!

3. Scripts hochladen

HUB: Braucht settings.tcl + request.tcl + types.tcl
LEAF: Braucht settings.tcl + allbots.tcl [ + checkflags.tcl]

4. Bots vorbereiten

LEAF: - in die config "set bottype <type>" schreiben, also natürlich ohne ""
und für <type> einen Type aus der types.tcl einsetzen

Beispiel:

set bottype FUN


- in die config "source scripts/allbots.tcl" schreiben

Damit das script geladen wird


HUB: - in die config "source scripts/request.tcl" schreiben

Damit das script geladen wird


5. Bots rehashen/starten/restart

LEAF: Das script wird automatisch beim start geladen.
Auf der partyline kommt nach 15 sekunden ein info text

HUB: Im main channel .load schreiben, um das script endgültig zu laden.



6. Request aktivieren

.request on - (im Main channel) Um den Request GLOBAL zu aktivieren

.reqeust <type> on - (im Main channel) Um den Request für <type> zu aktivieren

.request status - Zeigt den status


Commands (german)

## Commands ##

1. Request

- Admins

.request / .req

ON - Schaltet den GLOBALEN Request ein
Es kann also requestet werden, wenn FUN/NEWS... Request an ist

<+p0wl> .request on
<@iPot> Request enabled


OFF - Schaltet den GLOBALEN Request aus
Es kann nicht requestet werden

<+p0wl> .request off
<@iPot> Request disabled


STATUS - Gibt den GLOBALEN Status aus, und den Status der einzelnen Types

<+p0wl> .request status
<@iPot> Request Status {NEWS on} {FUN on}
<@iPot> Request Total Status on


STATS - Gibt an, wie viele Requests für jeden type geklappt haben/nicht geklappt haben

<+p0wl> .request stats
<@iPot> Request Stats NEWS oK: 0 failed: 2
<@iPot> Request Stats FUN oK: 12 failed: 16
<@iPot> Request Stats Total oK: 12 failed: 18


STATS <type> - Gibt an, wie viele Requests für diesen Type geklappt haben/nicht geklappt haben

<+p0wl> .request stats FUN
<@iPot> Request Stats FUN oK: 12 failed: 16


<type> ON/OFF/STATUS - Das gleiche wie oben, aber jetzt nicht global sondern für den Type halt



.bot

BROADCAST <text> - Sendet eine Message über alle bots (außer den Hub) in alle chans in denen +broadcast aktiviert ist (standardmäßig)

<+p0wl> .bot broadcast LOL
<@iPot> Done. Sent to 1 Bots.


ADD <bot/all> #chan <owner> - Added <bot> in #chan mit owner <owner>
- Achtung! Bei .bot add all werden ALLE bots in den chan geadded. dadurch wird ein ziemlicher spam entstehen

<+p0wl> .bot add kater #Smartie Smartie
<@iPot> Done Added kater for #Smartie with owner Smartie


DEL <bot/all> #chan - Holt <bot> aus #chan
- Bei .bot del all #chan werden alle bots #chan parten

<+p0wl> .bot del Kater #smartie
<@iPot> Done Removed Kater from #smartie


CHANFLAG <bot/all> #chan <+/-flag> - Setzt flag an oder aus in #chan

<+p0wl> .bot chanflag kater #Smartie -flagcheck
<@iPot> Done Chanflag kater for #Smartie changed.


INFO <#chan/bot> - Zeigt infos über #chan bzw bot

<+p0wl> .bot info #p0wl
<@iPot> Bots on #p0wl: {kater (FUN)}

<+p0wl> .bot info kater
<@iPot> kater Info: Type FUN Chans 7


STATS - Zeigt nen paar stats an

<+p0wl> .bot stats
<@iPot> Stats 1 Bots on 7 Channels.
<@iPot> Stats Type: FUN Chans: 1


.load - Läd das script

<+p0wl> .load
<@iPot> Request Loaded! Request enabled, checking auths in #p0wl
<@iPot> Request You have to enable the Type specific Requests! Try .request <type> on or .requests status
<@iPot> Request Settings I know 2 Bot Types (NEWS FUN). I know 1 Bots.


.reload - Läd das script neu (checkt auths neu)

<+p0wl> .reload
<@iPot> Request Loaded! Request enabled, checking auths in #p0wl


.unblock

* oder nichts - Unblocked alle Chans und Nicks für den Request

<+p0wl> .unblock
<@iPot> Done Unblocked all blocked Channels and nicks.


#chan - Unblocked #chan für den Request

<+p0wl> .unblock #smartie
<@iPot> Done Unblocked 1 blocks.


host/match - Unblocked host bzw match für den Request

<+p0wl> .unblock *p0wl*
<@iPot> Done Unblocked 1 blocks.



.blacklist / .blist

<+p0wl> .blacklist help
-iPot- Blacklist Hinzufügen .blacklist add <#chan/nick/host> <reason> [time]
-iPot- Blacklist Entfernen .blacklist del <#chan/nick/host>
-iPot- Blacklist Info .blacklist info <#chan/nick/host>
-iPot- Blacklist Statistik .blacklist stats
-iPot- Blacklist Suchen .blacklist <*mask*>


- Alle

?request / !request (Nur im Main/Intern/Support Chan)

HP - Gibt die Hp aus

<+p0wl> ?request hp
<@iPot> (p0wl) RequestHomepage http://powl.po.funpic.de/


BOTS/TYPES/TYPE - Zeigt die verfügbaren bot types

<+p0wl> ?request bots
<@iPot> (p0wl) Bot-Types We have 2 Bot Types: NEWS FUN


SUPPORT - Wenn der Support chan = der Main Chan kommt das hier:

<+p0wl> ?request support
<@iPot> (p0wl) Support Just ask here! No need to Qry!

- Sonst

<+p0wl> ?request support
<@iPot> (p0wl) Support Join #p0wl.support and stay tuned.


P0WL - Gibt werbung für mich aus =) muss auch ma sein

<+p0wl> ?request p0wl
<@iPot> #p0wl p0wl: m0wl!


HELP/nichts - Gibt die Commands zum requesten aus

<+p0wl> ?request help
<@iPot> (p0wl) Request To Request a NEWS Bot (You need 25 Users) type /msg iPot NEWS #yourchannel
<@iPot> (p0wl) Request To Request a FUN Bot (You need 20 Users) type /msg iPot FUN #yourchannel


- Im Qry/per /msg

Die Request trigger halt. Bei mir wäre es

/msg iPot FUN #channel - Um einen Fun bot zu requesten

Hier was zu ein paar fehlern:

Request currently disabled. No Bots aviable.
- Meint, das keine bots gelinked sind

Can't find Bot with typ $type for your Chan. Maybe there's also a bot in your chan.
- Entwerder da ist schon ein bot im chan mit dem type
- ODER kein Bot mit dem Type $type ist gelinked!

Die Restlichen fehler sollten sich von selbst erklären


2. Allbots

Es gibt keine Commands, die man als admin ausführt. Wird alles über den hub gesteuert.


3. Flagcheck

- Admins

.chanlev #chan

Zeigt die Rechte bei L/Q an, wenn der bot in dem chan ist.

.checkflags

Überprüft die Rechte bei L/Q
wird standardmäßig einmal pro stunde gemacht
jonlar
 

Re: Request System V2

Postby boderox » Sun Jul 13, 2008 3:24 pm

this is very nice script.. but need some recode.. some bugs for new Q
boderox
 

Re: Request System V2

Postby jonlar » Sun Jul 13, 2008 5:32 pm

Thats what i wrote.. But i dont know how to. maybe we´ll find somebody here....
jonlar
 

Re: Request System V2

Postby Lukemob » Wed Jul 16, 2008 4:47 pm

Hello, as I was "forced" to reply to this topic, let me say what I think about. I've not too much time, and I'm not going to load the script on my bot, and check command-after-command which work, and which not. If you tell me the exact error, I'd have a look into the script... But I'd rather to ask you to tell any new good ideas for next version of my request script, tell me what you miss there, or what could be better (just reply to the topic where my request is posted). When I find a time, I will think about your suggestions and possibly make an upgrade.

Thank you...
Lukemob
 

Re: Request System V2

Postby boderox » Wed Jul 16, 2008 5:07 pm

have error..
bot check requestchannel and say no have Q/L
checkflags dont work to with new Q
u need only upgrade for new Q hehe
:D
boderox
 

Re: Request System V2

Postby jonlar » Wed Jul 16, 2008 7:54 pm

Lukemob wrote:Hello, as I was "forced" to reply to this topic, let me say what I think about. I've not too much time, and I'm not going to load the script on my bot, and check command-after-command which work, and which not. If you tell me the exact error, I'd have a look into the script... But I'd rather to ask you to tell any new good ideas for next version of my request script, tell me what you miss there, or what could be better (just reply to the topic where my request is posted). When I find a time, I will think about your suggestions and possibly make an upgrade.

Thank you...



Well, U are right. Nothing else to write
Y punto
jonlar
 

Re: Request System V2

Postby daveyw » Sat Aug 09, 2008 1:05 pm

This script doesn't work anymore since Q9. It does atm only work with the old Q6.

For so far I can say the bot is trying to get the userlist for checking on Q, but he doesn't join the channel. That means he can't get the userlist so he says no Q/L.

But anyways, use the request system from Lukemob.
daveyw
 


Return to TCL Scripting Release

Who is online

Users browsing this forum: No registered users and 0 guests

cron