Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • dd_msg_area_chooser_coloring_fix_and_separator_char_fix
  • dailybuild_linux-x64
  • dailybuild_win32
  • sqlite
  • rip_abstraction
  • dailybuild_macos-armv8
  • dd_file_lister_filanem_in_desc_color
  • mode7
  • dd_msg_reader_are_you_there_warning_improvement
  • c23-playing
  • syncterm-1.3
  • syncterm-1.2
  • test-build
  • hide_remote_connection_with_telgate
  • 638-can-t-control-c-during-a-file-search
  • add_body_to_pager_email
  • mingw32-build
  • cryptlib-3.4.7
  • ree/mastermind
  • sbbs320d
  • syncterm-1.6
  • syncterm-1.5
  • syncterm-1.4
  • sbbs320b
  • syncterm-1.3
  • syncterm-1.2
  • syncterm-1.2rc6
  • syncterm-1.2rc5
  • push
  • syncterm-1.2rc4
  • syncterm-1.2rc2
  • syncterm-1.2rc1
  • sbbs319b
  • sbbs318b
  • goodbuild_linux-x64_Sep-01-2020
  • goodbuild_win32_Sep-01-2020
  • goodbuild_linux-x64_Aug-31-2020
  • goodbuild_win32_Aug-31-2020
  • goodbuild_win32_Aug-30-2020
40 results

dicebot.js

Blame
  • dicebot.js 1.07 KiB
    /*
    	IRC bot module - by Matt Johnson (MCMLXXIX) - 2010
    	This is a sample IRC bot module to demonstrate how such modules work.
    	More than one module can be loaded into the main IRC bot at a time,
    	but be careful when setting your bot commands (in '<botname>_commands.js')
    	if there are duplicate command names, they will be superseded in the order
    	in which they are loaded (in the order they are listed in ircbot.ini).
    */
    working_dir=this.dir;
    
    /* This method is executed by the IRCBot during its "save_everything()" cycle */
    function save()
    {
    	//var s_file=new File(working_dir + "file.ini");
    	//if(!s_file.open(file_exists(s_file.name)?"r+":"w+")) return false;
    	
    	/*
    		do some work, save some data.....
    	*/
    	
    	//s_file.close();
    }
    /* This method is executed by the IRCBot during its "main()" loop, once per cycle (DO NOT MAKE A LOOP) */
    function main(srv)
    {	
    	/*	Do some work here.
    		You can use a timer to time events or process scores.
    		You have access to server methods and properties.	*/
    }
    
    /* Module objects here: Everything here is loaded within the context of the "Modules()" object */