FlexHub Forum

Hub Variables

Offline LadyStardust

  • *****
  • 257
  • aka Puma
Hub Variables
« on: January 28, 2011, 20:04:38 »
%[address]   Main hub address
%[bot]   Hub bot name
%[datareceived]   Amount of received data
%[datasent]   Amount of sent data
%[date]   Hub local date
%[desc]   Hub description
%[email]   Hub owner's email
%[history]   Main chat/room history
%[hub]   Hub name
%[hubinfo]   This is a short message set with command !set hub_info, and can contain variables itself
%[lang]   Language of hubsoft
%[mem]   Current memory usage
%[mempeak]   Memory usage peak
%[minshare]   Hub minimum share
%[minslots]   Hub minimum slots
%[minsharedownload]   Min share to use hub
%[network]   Hub's network
%[opchat]   Opchat name
%[owner]   Hub owner
%[parm]   Target in text command
%[platform]   Host's platform (Windows or Linux)
%[quo te]   Quote added with !addquote command
%[speedreceived]   Speed received
%[speedreceivedpeak]   Speed received peak
%[speedsent]   Speed sent
%[speedsentpeak]   Speed sent peak
%[svn]   Hub svn number
%[time]   Hub local time
%[topic]   Hub topic
%[totalshare]   Hub total share
%[uptime]   Hub uptime
%[user_countrycode]   User's country code
%[user_desc]   User's description
%[user_downloadinfo]   A short message displaying whether searching and downloading is enabled or not in the hub.
(Like this "Downloading and searching is enabled, max. 3 searches in 50 seconds.")
%[user_email]   User's email
%[user_hubport]   Port user is using to connect to the hub
%[user_ip]   User's IP
%[user_iprofile]   Integer showing profile level
%[user_isactive]   Shows Active or Passive
%[user_isop]   Shows Operator or empty string
%[user_login]   Login time
%[user_name]   User's nickname
%[user_normalhubs]   Number of unregged hubs in users tag
%[user_ophubs]   Number of hubs registered with key in users tag
%[user_port]   Port user is using for active connections
%[user_profile]   Profile of user
%[user_profilemessage]   Welcome message for a profile
%[user_protocol]   Protocol used by user
%[user_reginfo]   This is a short message set with command !set reg_info, and can contain variables itself
%[user_reghubs]   Number of registered hubs in users tag
%[user_share]   User's share
%[user_slots]   User's opened slots
%[user_speed]   On ADC shows the reported (by client) speed, on NMDC shows limiter value
%[user_sprofile]   Label of users profile
%[user_tag]   User's tag
%[user_totalhubs]   Total number of hubs in users tag
%[usercount]   Hub user count
%[userpeak]   Highest user count since hub start
%[usersnmdc]   Hub NMDC user count
%[usersadc]   Hub ADC user count
%[version]   Hub version
%[webside]   Hub webside
« Last Edit: March 03, 2012, 20:29:57 by FlipFlopâ„¢ »
Best regards,
LS

Offline LadyStardust

  • *****
  • 257
  • aka Puma
Re: Hub Variables
« Reply #1 on: December 05, 2011, 19:57:42 »
%[parm] - Use in texts to fill from the command line: !addcmd slap -o2 -h"Slap someone in mainchat" "%[user_name] slaps %[parm] with a rotten fish. Oh man it smells bad!"
%[user_profilemessage] - Use for login messager for profiles, check: http://www.flexhub.org/forum/index.php?topic=359.0
%[address_nmdc] - to specify NMDC address of your hub
%[address_nmdcs] - to specify NMDCS address of your hub
%[address_adc] - to specify ADC address of your hub
%[address_adcs] - to specify ADCS address of your hub
Best regards,
LS