Rewrite timer command to use JSON
* Rewrite parseTime to use seconds instead of ms * Move parseTime to timer subdirectory * Implement checkTimer and sendTimerReminder.
This commit is contained in:
parent
a4b75b0161
commit
04f39582a4
7 changed files with 55 additions and 14 deletions
|
@ -3,8 +3,9 @@ const customReplaceWithVariables = require('../util/custom_commands/customReplac
|
|||
|
||||
module.exports = function(client, owners, message, globalPrefix){
|
||||
let prefix = globalPrefix;
|
||||
if (client.serverPrefixes.get(message.guild.id)) {
|
||||
prefix = client.serverPrefixes.get(message.guild.id)
|
||||
let serverPrefix = client.serverPrefixes.get(message.guild.id);
|
||||
if (serverPrefix) {
|
||||
prefix = serverPrefix;
|
||||
}
|
||||
|
||||
let args = message.content.slice(prefix.length).split(" ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue