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.
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.
}
}