Editing Logon

From Bebot Wiki 2
Jump to navigationJump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
====== Introduction ======
+
Introduction
 +
 
 
The Logon Notifies core module offers a central place to handle logon notifies for guests or members on the buddy list. To prevent instant spamming it offers a custom-definable delay to the notifications to the modules.
 
The Logon Notifies core module offers a central place to handle logon notifies for guests or members on the buddy list. To prevent instant spamming it offers a custom-definable delay to the notifications to the modules.
 +
How to register for notifies
  
====== How to register for notifies ======
+
If a module wants to use notifies to user logging in via this module it has to register it in the constructor. To do this it has to call  
If a module wants to use notifies to user logging in via this module it has to register it in the constructor. To do this it has to call
 
$this -> bot -> logon_notifies -> register($this)
 
Every time a buddy logs in the module gets now notified via it's notify() function after the defined delay.
 
  
====== Function notify($name) ======
+
$this → bot → logon_notifies → register($this)
Any module using the central notifies has to implement the function
 
notify($name)
 
$name is the name of the newly logged in character. Any further actions for the character have to be taken here.
 
  
====== Settings ======
+
Every time a buddy logs in the module gets now notified via it's notify() function after the defined delay.
You can edit the settings by doing :
+
Function notify($name)
!settings Logon_notifies
 
 
 
Enabled: Are notifies on logon enabled or disabled?
 
 
 
Notify_Delay: How many seconds should be waited after logon of a buddy till any notifies are sent to him?
 
  
Startup_Delay: How many seconds should be waited after startup before bot starts firing its notifcations?
+
Any module using the central notifies has to implement the function notify($name). $name is the name of the newly logged in character. Any further actions for the character have to be taken here.

Please note that all contributions to Bebot Wiki 2 may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Bebot Wiki 2:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)