mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2016
Posts: 4
J
Self-satisified door
OP Offline
Self-satisified door
J
Joined: Jul 2016
Posts: 4
I recently added a feature to my Twitch bot and decided I should share it since I couldn't seem to find this anywhere else.

This command allows you to look up the amount of coins or points another user has.

Example command:

JellySalto: !cl Bob
BotName: JellySalto Bob has 20 total coins.


Quote:

on *:text:!cl*:#:{
if ((%floodcl) || ($($+(%,floodcl.,$nick),2))) { return }
set -u30 %floodcl. $+ $nick On
if ($0 != 2) {
msg $chan Incorrect parameters: use !cl <user>
Halt
}
if ($readini(Coins.ini,$+(#,.,$2),Coins) = $null) {
msg $chan $nick person could not be found.
Halt
}
else {
msg $chan $nick $2 has $readini(Coins.ini,$+(#,.,$2),Coins) total coins.
}
}

Last edited by JellySalto; 13/07/16 01:04 AM.
Joined: May 2015
Posts: 249
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
And this command is useless without the other part of those coins system.


Dont give a fish - teach to fish!
Joined: May 2015
Posts: 249
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
And you dont use %floodcl in your script.


Dont give a fish - teach to fish!

Link Copied to Clipboard