$setServerVar
Set the value of the provided server variable to a new value. You can provide a guild ID in the 2nd field to set the variable value of the specific guild.

FUNCTION USAGE

  • $setServerVar[varName;newValue]
  • $setServerVar[varName;varValue;guildID]

Properties:

varName - The variable being called in the command. newValue - New value of the server variable. guildID - The ID of the guild to set the value for.

Example 1: Setting the server variable value

bot.Command({
name: "set",
code:`
__Total messages sent in the server__
$numberSeparator[$getServerVar[serverMsgs];,]
`})
Only 1 value can be stored in the same variable in each server. This variable accounts for the entire server
Copy link