I am working on this exact script.

I currently have most of it complete:
You earn X tokens every X minutes (default 1 every 10 minutes)
You can check your tokens - !tokens
You can start a raffle - !raffle start
You can add tickets to the raffle - !ticket [number] only when raffle is open
You can end a raffle - !raffle end
You can modify tokens - !tokens modify (- or +)[number] [user]
You can check a specific users tokens - !tokens check [user]

To be completed:
Raffle handling... it works for 1 winner but I would like to make it able to draw a 1st, 2nd, 3rd, etc. places with a !raffle end [number of winners] command.

If you have a popular twitch channel I would love to run an extended test on my script in your channel. Get back to me if you would.