Variables

Creating Variables

bot.variable({
    name: "Name",
    value: "Value",
    type: "Type"
})

This should go in your main file (e.g server.js/index.js)

Breakdown

Name - The name of the variable. This is how the variable is called.

Value - The value of the variable. This is the content that is returned when the variable is called.

Type - The variable type. You can use either String or Integer.

  • String - Text. Can include both alphabetical characters, special characters, or numbers.

  • Integer - Number. Only for numbers.

Variable Categories

  • User Variables - Variables are assigned per server-user.

  • Global Variables - Variables are assigned globally.

  • Global-User Variables - Variables are assigned per user, but do not change per server.

  • Server Variables - Variables are assigned per server.

  • Message Variables - Variables are assigned per message.

Last updated

Was this helpful?