Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
module:ircbot [2019/04/24 11:13] – hansolo | module:ircbot [2019/05/30 23:43] (current) – Created sections digital man | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | + | ||
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | < | + | |
- | NOTE: I worked on testing the Synchro.net ircBot but quite honestly I reached my limit. | + | |
- | all the undocumented commands and configuration any further. | + | |
- | an existing IRCd (Bahamut) we should be able to use other services. | + | |
- | That being said, I had some luck getting Anope IRC services to run. I have created a new page in the wiki for Anope IRC services. | + | |
- | </ | + | |
- | + | ||
+ | ===== Install ===== | ||
- | I'm going to start working on revising this page. Since there is not a great deal of info about the ircBot | + | The IRC bot is included with Synchronet |
- | **Installation** | + | ===== Configure ===== |
- | There is an ircBot program included with the Synchro.net BBS package, but it is not enabled by default. | + | |
- | **Configuration** | + | The IRC bot configuration |
- | The ircBot is controlled via a settings | + | |
- | Most important are the server settings; | + | |
< | < | ||
Line 42: | Line 19: | ||
//Notes:// | //Notes:// | ||
- | - If running | + | - If you are running the Synchronet ircd, you can connect |
- | - Port is required but if you use the default 6667 or a dedicated port doesn' | + | - You may place more than one server section in [[: |
- | - Passwords are important but quite honestly I have not figured out how to authenticate a bot other than with /oper lines. | + | |
- | - I have found that you may place more than one server section in the //ini// and it does in fact create more than one bot in the ircd. | + | |
**Modules** | **Modules** | ||
- | There are a number of modules available for the ircBot to host, although | + | There are a number of modules available for the IRC bot, but they are not all enabled (or listed) in '' |
< | < | ||
Line 58: | Line 33: | ||
</ | </ | ||
- | Looking at the //sbbs/exec/ | + | Looking at the '' |
< | < | ||
Line 71: | Line 46: | ||
[module_Antispam] | [module_Antispam] | ||
global=true | global=true | ||
+ | channels = # | ||
dir=/ | dir=/ | ||
Line 117: | Line 93: | ||
[module_RPG] | [module_RPG] | ||
+ | channels = # | ||
dir=/ | dir=/ | ||
</ | </ | ||
//Notes// | //Notes// | ||
- | - Google seems to have some file dependencies and doesn' | + | - Google seems to have some missing |
- No trivia directory although it is listed in the ini file. | - No trivia directory although it is listed in the ini file. | ||
+ | - Add a module to a channel by adding the line channels = # | ||
- Otherwise, by adding the modules to the ini and restarting the bot you may make these available in your ircd. | - Otherwise, by adding the modules to the ini and restarting the bot you may make these available in your ircd. | ||
- | |||
- | **Usage** | + | **Running the IRC Bot** |
+ | The IRC bot can be executed via [[: | ||
- | //Notes// | + | You can also run the IRC bot via your services thread by adding an entry to [[: |
- | - See the help by sending **/msg < | + | |
- | - You will need to **/msg < | + | < |
+ | [IRCBot] | ||
+ | Port=6668 | ||
+ | Options=STATIC|LOOP | ||
+ | Command=ircbot.js | ||
+ | </code> | ||
+ | |||
+ | Note that the //Port// value must be supplied, but is irrelevant; the bot does not listen for connections. | ||
+ | |||
+ | You can add '' | ||
+ | |||
+ | ===== Use ===== | ||
+ | |||
+ | - See the help menu by sending **/msg < | ||
+ | - Some commands are restricted and will not show up in the help menu (or be usable), until you have identified yourself | ||
Without **IDENT** the help looks like; | Without **IDENT** the help looks like; | ||
Line 187: | Line 179: | ||
</ | </ | ||
- | I am going to begin going through all the commands for the bot and will list them out here. | + | The main module functions are contained in the ''/ |
+ | |||
+ | < | ||
+ | Bot_Commands[" | ||
+ | get_cmd_prefix() + " | ||
+ | Bot_Commands[" | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | This is an example from the command RELOAD. | ||
+ | The usage line dictates the syntax required to execute the command. | ||
+ | The help line contains a text description of the command' | ||
+ | |||
+ | **Module Main** | ||
+ | * reload - Reloads the internal bot command and function structure. | ||
+ | * load - ??? Unconfirmed ??? I suspect this loads messages from a BBS message area but am unable | ||
+ | * join - Instructs | ||
+ | * part - Instructs | ||
+ | * die - Causes bot to die (shut down). You don't want that, do you? | ||
+ | * restart - Forces bot to restart, only works with bots running as a service. | ||
+ | * help - Displays helpful information about bot commands. | ||
+ | * ? - This is the same as help above [Note: This is a command alias, created via // | ||
+ | * ident - Identifies a user by alias and password. Use via private message only. [Note: create an alias for IDENT too.] | ||
+ | * addquote - Adds a quote from your nick to the database. | ||
+ | * quote - QUOTE returns quote assoicated with your nick, or search for a string to quote. | ||
+ | * greet - Sets or clears the greeting I will display when you enter the room. | ||
+ | * save - ??? Unconfirmed ??? Save some data locally? | ||
+ | * prefix - Changes the bot command prefix. Default is BOT. Only needed in channels, not in private msgs. | ||
+ | * nick - Change the bots nickname. | ||
+ | * module - Toggle the status of modules in channels. | ||
+ | * modules - Same as modules above. | ||
+ | * abort - Instruct the bot to ABORT server output. | ||
+ | * ignore - Tell the bot to IGNORE the specified nickname. | ||
+ | |||
+ | Note: The RELOAD command throws an error in it's default config. This should result in reloading [[: | ||
+ | |||
+ | < | ||
+ | TypeError: redeclaration of const MODULE_NAME | ||
+ | file: / | ||
+ | line: 27 | ||
+ | </ | ||
+ | |||
+ | You may comment | ||
+ | |||
+ | < | ||
+ | Bot_Commands[" | ||
+ | srv.o(target," | ||
+ | load(" | ||
+ | load(" | ||
+ | for(var m in Modules) { | ||
+ | /* Don't reload libraries?? | ||
+ | for(var l in Modules[m].load) { | ||
+ | if(Modules[m].load[l]) load(Modules[m], | ||
+ | } */ | ||
+ | } | ||
+ | srv.o(target," | ||
+ | return; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | I'll start creating separate pages for the other modules as I work though them. | ||
===== See Also ===== | ===== See Also ===== | ||
* [[: | * [[: | ||
- | {{tag>}} | + | {{tag>irc chat}} |