Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Hypertoken77

Pages: [1]
1
I was working on a betting game, and wanted to have each user have his/her own cooldown, so they couldn't abuse the system.

If you wan't to use this for your command, change !test to the command name of your choice, or don't. Up to you! :P

Then replace the phrase "You've ran the test command successfully!" with the !command you want to run! That simple!

!test
Code: [Select]
@if@[@readfile@[Cooldown/@user@.txt]||||!testpass||!testmath](elevated)

!testmath
Code: [Select]
@if@[>=||@calc@[-|@unixtime@|@readfile@[Cooldown/@user@.txt]]||@readfile@[Cooldown/limit.txt]||!testpass||!testfail @calc@[-|@unixtime@|@readfile@[Cooldown/@user@.txt]]](elevated)

!testpass
Code: [Select]
You've ran the test command successfully! @savefile@[Cooldown/@user@.txt,@unixtime@]
(elevated)

!testfail
Code: [Select]
I'm sorry @user@ but that command can only be ran every @readfile@[Cooldown/limit.txt] seconds. You have @calc@[-|@readfile@[Cooldown/limit.txt]|@target@] seconds left.
(elevated)

!setcooldown
Code: [Select]
@if@[@target@||||You must provide a number of seconds ie: !setcooldown 60||@savefile@[Cooldown/limit.txt,@target@]]
(elevated, MOD only)

http://pastebin.com/VCsDV4Aa

2
1. My brother found it for me.
2. Hypertoken77
3. TokedBot
4. M-F 9-11PST
5. No
6. 5
7. No

Also the $10 payment was made :D

System Edit : Application Accepted. Install complete. Thanks for the support!

Pages: [1]