egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

tcl commands available - help req

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
John_Maclain
Voice


Joined: 07 Apr 2006
Posts: 23
Location: England

PostPosted: Tue Nov 21, 2006 4:25 am    Post subject: tcl commands available - help req Reply with quote

Hi there, i have an eggdrop running stats.mod

in the readme it says the following:

Quote:
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!
_________________
http://www.morphies.net
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Nov 21, 2006 4:49 am    Post subject: Reply with quote

Code:
.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
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Nov 21, 2006 6:22 am    Post subject: Reply with quote

Is it a DCC command or TCL command? If TCL, then
Quote:
.tcl incrstats <user> <chan> <type> <value> [set]

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
John_Maclain
Voice


Joined: 07 Apr 2006
Posts: 23
Location: England

PostPosted: Tue Nov 21, 2006 1:50 pm    Post subject: Reply with quote

it's a tcl command, thats why .incrstats wasnt working Smile
many thanks Smile
_________________
http://www.morphies.net
Back to top
View user's profile Send private message Visit poster's website
John_Maclain
Voice


Joined: 07 Apr 2006
Posts: 23
Location: England

PostPosted: Tue Nov 21, 2006 3:31 pm    Post subject: Reply with quote

Quote:
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:

Quote:
[19:05] <John_Maclain> .tcl incrstats Wraith #morpheus words 90000
[19:05] <MorphBot> What? You need '.help'


Any clues?
_________________
http://www.morphies.net
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Nov 21, 2006 5:38 pm    Post subject: Reply with quote

eggdrop.conf:
Quote:
# 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
Back to top
View user's profile Send private message Visit poster's website
John_Maclain
Voice


Joined: 07 Apr 2006
Posts: 23
Location: England

PostPosted: Tue Nov 21, 2006 6:44 pm    Post subject: Reply with quote

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.

Quote:
[22:43] <John_Maclain> .tcl incrstats Wraith #morpheus words 90000
[22:43] <MorphBot> What? You need '.help'


puzzled Smile
_________________
http://www.morphies.net
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Nov 21, 2006 8:28 pm    Post subject: Reply with quote

You should be permanent owner to use these commands
Quote:
# 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
Quote:
# 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

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
John_Maclain
Voice


Joined: 07 Apr 2006
Posts: 23
Location: England

PostPosted: Wed Nov 22, 2006 1:51 pm    Post subject: Reply with quote

That soved it.

he's listening to me again Smile


thanks you! Laughing
_________________
http://www.morphies.net
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber