User Tools

Site Tools


command_cooldown_per_user

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

command_cooldown_per_user [2020/02/06 00:13]
dante557 created
command_cooldown_per_user [2020/02/06 00:18] (current)
dante557 Moved text regarding multiple commands from top to "Useful Information" section
Line 2: Line 2:
  
 The Cooldown Per User command allows for your bot to have cooldown on commands on a per user basis instead of the default global cooldown that is built in the bot. This is done through the use of text files. The Cooldown Per User command allows for your bot to have cooldown on commands on a per user basis instead of the default global cooldown that is built in the bot. This is done through the use of text files.
- 
-This command can be added to other commands for a custom cooldown time that applies to each user! 
-You will need to make a folder in custom logs named whatever you want, but replace the Cooldown/​@user@.txt in the commands to WhateverYouNamedFolderHere/​@user@.txt. 
- 
  
 Want to see more community-made custom commands? Click the following link - [[user_custom_commands|Link]]\\ Want to see more community-made custom commands? Click the following link - [[user_custom_commands|Link]]\\
Line 41: Line 37:
  
 ==== Useful Information ==== ==== Useful Information ====
-   * This can be used for multiple commands but you will need to edit the commands ​above in order to do so. Most importantly you will need to adjust ​the @readfile@/@savefileparts of the command ​in order for them to point to the correct folder+   * This command ​can be added to other commands ​for a custom cooldown time that applies ​to each user! You will need to make a folder in custom logs named whatever you want, but replace ​the Cooldown/@user@.txt in the commands to WhateverYouNamedFolderHere/​@user@.txt
-   * You will need to either manually create the limit.txt file and add the number of seconds or run !setcooldown <folder name> <Seconds For Cooldown>​ as detailed in the command section of this page for the command to work correctly. If you don't do this the command will run no matter how many times the viewer triggers the command.+   * You will need to either manually create the limit.txt file and add the number of seconds or run **!setcooldown <folder name> <Seconds For Cooldown>​** as detailed in the command section of this page for the command to work correctly. If you don't do this the command will run no matter how many times the viewer triggers the command.
  
command_cooldown_per_user.txt · Last modified: 2020/02/06 00:18 by dante557