This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Make an "admin system"

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
t
toXiP
Voice
Posts: 10
Joined: Tue Jan 01, 2008 11:00 am

Make an "admin system"

Post by toXiP »

Hi,

I want to be able to use theese commands, so I need a script, so they'll work:
?cmd - cmd:
if op: ?t ?o ?do ?v and so on..
-
if voiced/reg: ?t
?t - topic:
<user1> ?t
<bot> Topic is: <topic>
-
<admin> ?t newtopic
<bot> changes topic to: newtopic
?o - op:
<user1> ?o user1
<bot> sets mode +o: user1
?do - deop:
<user1> ?do user1
<bot> sets mode -o: user1
?v - voice:
<user1> ?v user1
<bot> sets mode +v: user1
?dv - devoice:
<user1> ?dv user1
<bot> sets mode -v: user1
?k - kick:
<user1> ?k user1 bye
<user1> was kicked by <bot> (bye)
?kb - kickban:
<user1> ?kb user1 (bye)
<bot> sets mode +b: *@hostname
<user1> was kicked by <bot> (bye)
?tb - tempban:
<user1> ?tb user1 600 (bye)
<bot> sets mode +b: *@hostname
<user1> was kicked by <bot> (bye)
(600 sec later:)
<bot> sets mode -b: *@hostname
?b - ban:
<user1> ?b *@hostname
<bot> sets mode -b: *@hostname
-
<user1> ?b nick
<bot> error: must contain hostname, not nick.
?ub - unban:
<user1> ?ub *@hostname
<bot> sets mode -b: *@hostname
-
<user1> ?ub nick
<bot> error: must contain hostname, not nick.
?i - invite:
<user1> ?i nick
<bot> invites nick to join channel
?m - mode
<user1> ?m +i
<bot> sets mode: +i
?cmd and ?t is for op/reg/voiced. The rest is just for op.

It would be GREAT if someone fixed this for me! <3
Last edited by toXiP on Wed Feb 20, 2008 5:44 pm, edited 2 times in total.
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Search the Tcl Archive.
t
toXiP
Voice
Posts: 10
Joined: Tue Jan 01, 2008 11:00 am

Post by toXiP »

tkpubcmds.tcl got !t, !kb, !k, !o, !do, !v and !dv. So probably, I can make !b and !ub. But I need help with !cmd, !tb, !i and !m.

Also, the script should only be used by people with op (and admin of the bot) on the chan (except !cmd and !t).
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

There's a FULL description of what the script does within the header.

It does everything as expected (kick / kick ban etc).
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
t
toXiP
Voice
Posts: 10
Joined: Tue Jan 01, 2008 11:00 am

Post by toXiP »

Now I just need ?cmd and ?tb, could anyone help me out? :)

Also, I need the script to only work for op-ed users (except for ?cmd)
Post Reply