Variables | Chatbot Library
Skip to main content

Variables

Utils variables can be found here. All these variables are not required for Zaroc functionalities but they help a lot when building your Chatbot.

You are (JUST for Utils) free to add, edit, delete Variables as you want.

  • Colors are used for on some Blocks for almost all Integrations
  • Colors are declared in #HEX format, they also can support rgb@

Colors

Colors can be found here

Zaroc
โ””โ”€โ”€โ”€ utils
โ””โ”€โ”€โ”€ variables
โ””โ”€โ”€โ”€ colors
White Gray Silver Black
Pink Coral Red Crimson Brown
Gold Yellow Orange
Lemon Green
Cyan Aqua
darkAqua Blue
Purple

Dates

Variables that sets the current Date

Dates can be found here

Zaroc
โ””โ”€โ”€โ”€ utils
โ””โ”€โ”€โ”€ variables
โ””โ”€โ”€โ”€ dates
#Sets the default TimeZone
date_default_timezone_set('America/Mexico_City');

#Gets actual Date in d-m-Y format
$actualDate = date('d-m-Y');

#gets actual time in h:i:s format
$actualTime = date("h:i:s");

#Get Maxdays in a Month
$maxDays = date('t');

#Get current day
$currentDayOfMonth = date('j');

Variables that sets usefull Links

Links can be found here

Zaroc
โ””โ”€โ”€โ”€ utils
โ””โ”€โ”€โ”€ variables
โ””โ”€โ”€โ”€ links
$exampleLink = "https://example.com";
$exampleImage = "";

Miscelaneous

Variables that solves specific problems sometimes

Misc can be found here

Zaroc
โ””โ”€โ”€โ”€ utils
โ””โ”€โ”€โ”€ variables
โ””โ”€โ”€โ”€ miscelaneous
#SOCIAL MEDIA VARIABLES
$fb = "FACEBOOK";
$sk = "SLACK";
$tg = "TELEGRAM";
$br = '</br>';
$n = '\n';

#Facebook Images Styles

$style_Tall = 'tall';
$style_Compact = 'compact';
$style_Full = 'full';

#Facebook Media Types

$media_Image = 'image';
$media_Video = 'video';

#Currencies

$cur_Usd = 'USD';


##Presentation
$hour = date("H");

if ($hour >= 7 && $hour < 12)
{
$es_welcome = "Buenos dรญas";
$en_welcome = "Good Morning";
}
else if ($hour >= 12 && $hour < 20)
{
$es_welcome = "Buenas Tardes";
$en_welcome = "Good Afternoon";
}
else if ($hour >= 20 && $hour < 24)
{
$es_welcome = "Buenas Noches";
$en_welcome = "Good Evening";
}
else if ($hour >= 0 && $hour < 7)
{
$es_welcome = "Buenas Madrugadas";
$en_welcome = "Good Dawn";
}