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.

tcl commands available - help req

General support and discussion of Eggdrop bots.
Post Reply
J
John_Maclain
Voice
Posts: 23
Joined: Fri Apr 07, 2006 2:06 pm
Location: England
Contact:

tcl commands available - help req

Post by John_Maclain »

Hi there, i have an eggdrop running stats.mod

in the readme it says the following:
TCL commands:
-------------

incrstats <user> <chan> <type> <value> [set]
increases the statistics of type <type> in <chan> for <user> by <value>.
If <set> is 1, the stats are not increased but set to the value.

getstats <user> <chan> <type> [today]
returns the stats of <user> in <chan> of type <type>. If <today> is 1,
the statistics of today are returned.
All i want to know is how you execute a tcl command?

like i want to increase a users stats, but i cant figure it out!!

TIA!
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

.incrstats <user> <chan> <type> <value> [set]
Executed from the party line (DCC Chat).
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Is it a DCC command or TCL command? If TCL, then
.tcl incrstats <user> <chan> <type> <value> [set]
J
John_Maclain
Voice
Posts: 23
Joined: Fri Apr 07, 2006 2:06 pm
Location: England
Contact:

Post by John_Maclain »

it's a tcl command, thats why .incrstats wasnt working :-)
many thanks :-)
J
John_Maclain
Voice
Posts: 23
Joined: Fri Apr 07, 2006 2:06 pm
Location: England
Contact:

Post by John_Maclain »

TCL commands:
-------------

incrstats <user> <chan> <type> <value> [set]
increases the statistics of type <type> in <chan> for <user> by <value>.
If <set> is 1, the stats are not increased but set to the value.

getstats <user> <chan> <type> [today]
returns the stats of <user> in <chan> of type <type>. If <today> is 1,
the statistics of today are returned.
thats what's in the readme file,

so i carry on with this in the parrtyline:
[19:05] <John_Maclain> .tcl incrstats Wraith #morpheus words 90000
[19:05] <MorphBot> What? You need '.help'
Any clues?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

eggdrop.conf:
# Comment these two lines if you wish to enable the .tcl and .set commands.
# If you select your owners wisely, you should be okay enabling these.
unbind dcc n tcl *dcc:tcl
unbind dcc n set *dcc:set
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
J
John_Maclain
Voice
Posts: 23
Joined: Fri Apr 07, 2006 2:06 pm
Location: England
Contact:

Post by John_Maclain »

I commented those lines outta the config file, did a .rehash and tried the command again, still get say what? you need help.

did a .restart

Bot reloaded, reconnected and still get the same response from the bot.
[22:43] <John_Maclain> .tcl incrstats Wraith #morpheus words 90000
[22:43] <MorphBot> What? You need '.help'
puzzled :-)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

You should be permanent owner to use these commands
# Un-comment the next line and set the list of owners of the bot.
# You NEED to change this setting.
set owner "Opposing"
Opposing is my handle on the bot and not my nickname.

Another setting you can look into is
# If you enable this setting, only permanent owners (owner setting) will be
# able to use .tcl and .set. Moreover, if you want only let permanent owners
# use .dump, then set this to 2.
set must-be-owner 1
J
John_Maclain
Voice
Posts: 23
Joined: Fri Apr 07, 2006 2:06 pm
Location: England
Contact:

Post by John_Maclain »

That soved it.

he's listening to me again :-)


thanks you! :lol:
Post Reply