NoodleBot

From Botdom Documentation

Jump to: navigation, search
Read general information about NoodleBot on the Botdom Wiki.

Contents

NoodleBot was a bot made by NoodleMan. It is currently discontinued, and documentation is therefore very sparse.

Below is the readme for NoodleBot 3.0, the latest version. The readme for NoodleBot 2.5 is displayed further below.

NoodleBot 3.0 readme

 ///////////////////////////////////////////////////////////////////////////////////
//nn  nn nnnnnn nnnnnn nnnn   nn     nnnnnn nnnn   nnnnnn nnnnnn  nnnnnn    nnnnnn//
//nnn nn nn  nn nn  nn nn  nn nn     nn     nn  nn nn  nn   nn        nn    nn  nn//
//nnnnnn nn  nn nn  nn nn  nn nn     nnnn   nnnnnn nn  nn   nn      nnnn    nn  nn//
//nn nnn nn  nn nn  nn nn  nn nn     nn     nn  nn nn  nn   nn        nn    nn  nn//
//nn  nn nnnnnn nnnnnn nnnn   nnnnnn nnnnnn nnnn   nnnnnn   nn    nnnnnn nn nnnnnn//
///////////////////////////////////////////////////////////////////////////////////

By downloading and reading these directions, you here-by agree to the GNU General Public License as 
outlined in the "GNU General Public License.txt" file included with this download.

Everything in NoodleBot has been touched by NoodleMan in some way, if not completely written by him, 
but many others have made contributions. Most notably is doofsmack, who created dAmnbot which this bot
is based upon. Other contributors include (in order of contribution):

# twexler
# radiositysg
# sumopiggy
# Azildin
# Rednaxling
# infinity0
# electricnet
# photofroggy
# groowe

Direct comments, questions, and suggestions to NoodleMan via deviantart or email at nm@thenoodleman.com.
If you have improved upon or added to NoodleBot in any way, feel free to contact me with them, and
I may add them in.

////////////////////////////////////////////////////
// Contents 
///

# 1.PHP Installation
# 2.Bot Installation
# 3.Running your bot
# 4.Troubleshooting
# 5.Further Configuration
# 6.Commands

////////////////////////////////////////////////////
// 1.PHP Installation 
///

This section only needs to be done if you do not already 
have a version of PHP installed.

PHP is not supported by the Bot Developer/Team and all questions or comments 
with this section should be directed to to www.php.net and www.zend.com.

// Step 1 - Download //
Download the latest version of the PHP windows binary (.zip) from 
the downloads page on php.net. 
The latest noodlebot-tested version is 5.1.2, so if you encounter
problems, try downloading this version.

// Step 2 - Configure //
Extract your download wherever you like (I chose c:\) and open 
php.ini-recommended with notepad or wordpad.

Find ";extension=php_bz2.dll". Change it to "extension=php_bz2.dll".
Find ";extension=php_sockets.dll". Change it to "extension=php_sockets.dll".

So to summarize, remove the semicolons in those two places.

At the bottom of the extension list (after ";extension=php_xsl.dll")
add "extension=php_zip.dll".

Save the file as php.ini.

Open the ext folder. Copy the files php_bz2.dll and php_sockets.dll into the
same directory as php.ini.

Open up your noodlebot folder. (The one with this readme in it.)
Move php_zip.dll into the same place as the last two files you moved.

PHP is now installed. Proceed to bot installation.

////////////////////////////////////////////////////
// 2.Bot Installation 
///

NoodleBot is not a spam tool and was designed to be used in conjuction with 
dAmn Chat from the deviantArt.com community. 

Before you begin the process of setting up NoodleBot, you will need to have 
a deviantArt account for the bot to use.

// Step 1 - Download //
If you're reading this, you've already done this step. Congratulations!

// Step 2 - Configure //
Open up the config folder. Double click on login.ini.
Replace username and password with your bot's username and password.
Replace NoodleMan with your username. 
(Unless you want me to be have full access to your bot and computer. :))

Add whatever channels you like to the channel list. Here's an example:
array (
  0 => 'botdom',
  1 => 'devart',
  2 => 'thumbshare',
),
If the above is too confusing for you, don't worry. You can modify the 
channels your bot joins with the !chan command. 

Congratulations. Your bot is ready to go!
If you've run a noodlebot before, skip ahead to further configuration.
Otherwise, continue on to running your bot.

////////////////////////////////////////////////////
// 3.Running your bot
///

If you know how, set php files to open with php.exe, located in the php download.
Otherwise, read further for a more in-depth explanation.

Right click on bot.php in the same folder as this readme and click properties. 
Find Opens With: near the top. Click the Change button to the right.
Click Browse and find php.exe. It can be found in the php folder you downloaded.
Click Ok, and Ok again.

From now on, all you need to do to run your bot is double-click on bot.php!

////////////////////////////////////////////////////
// 4.Troubleshooting
///

// The window flashes some text and closes really fast! What do I do?
Open up notepad or wordpad. Then find and open debug.bat, located in the
same place as this readme.

Change "c:\noodlebot" to the path to bot.php. 
So let's say bot.php is in C:\noodlebot-3.0\noodlebot. 
The first line would then be "cd c:\noodlebot-3.0\noodlebot".

Change "c:\php" to the path to php.exe.
So if php.exe is in C:\php-5.1.2\php, the second line would read:
"c:\php-5.1.2\php\php.exe bot.php"

Save and exit. Then double click on debug.bat.
If you modified the file correctly, it will show you some errors.
Read on for solutions.

// I get an error that mentions sockets or dll files!
This means you didn't install php correctly. Head back up to php installation
and make sure you did everything properly.

// My bot starts, but quits after about a minute!

// I get a syntax error!
If you've been modifying the bot, you messed up. If not, check over the config
files. Make sure all text is quoted with ", ' or `.
Also, make sure you don't have one type of quote within itself.
'Don't eat my cereal!', would be incorrect, while
"Don't eat my cereal!", would be fine.

////////////////////////////////////////////////////
// 5.Further Configuration
///

This section documents all the default config files. 

// access //
 names: This is a list of all named privclasses.
	On the left is the name, on the right is the level.
	These can be modified with !pc.
	Anything below 0 will not receive a response from the bot.
 perms: This is a list of commands and their required priv level.
	ON the left is the command name, on the right is the level required.
	These can be modified with !access.
	Anything with a level below 0 can only be used by the bot.
	When changing these, make sure you know what they can do.
	For example, don't give anyone else access to !exec unless you want
	to give them full access to your computer.

// bot //
 trigger: This is your bot's trigger. So if I wanted to access the say
	command and my bot's trigger was +, I would say +say.
 command: Make it true if you want commands to be on, false to turn them off.
	This can be changed with !turn.
	All command in the system folder will ignore this value.
 restrict: This is what your bot will say to someone who tries to access
	a command they don't have access to.
	Change it to empty quotes ('restrict' => '',) to disable this message.
	%f is the user, %r is required level and %l is their level.
 invalid: This is what your bot will say to someone who attempts a command
	that doesn't exist.
	Change it to empty quotes ('invalid' => '',) to disable this message.
	%f is the user, and %c is the command.
 autorejoin: If true, your bot will automatically re-join a channel it is
	kicked from. Set to false to disable.
 sdir: This is a list of command directories. Your bot will look for commands
	in any of these folders inside of the commands folder.

// logs //
 logs: If true, your bot will record logs. Set to false to stop recording.
 timestamp: This is the format for timestamps in the logs.
	It uses the same format as the date() function.
 file: This is the format for log filenames.
	It uses the same format as the date() function.
 session: If true, your bot will record logs specifically for it's current
	session in the session folder.
	This is used for the console. No need to turn this on yet.

// users //
 This file is a list of users for your bot and their priv level.
 Username is on the left, level is on the right.
 These values can be changed with !user.

////////////////////////////////////////////////////
// 6.Commands
///

	ABOUT
	- Simply says a little bit about your bot.
	ACCESS
	- Use it to change permission levels for commands.
	- Ex: !access about 99 would make your bot require Owner access to use !about.
	ADMIN
	- Works just like /admin.
	- Ex: !admin create privclass Members order=50
	- Ex2: !admin show privclass
	CHAN 
	- Use it to manage channels your bot will join on login.
	- Exs: !chan add Botdom, !chan del Botdom, or !chan list
	COMMANDS
	- A list of commands your bot has and their required priv level.
	DEMOTE
	- Demotes someone. (requires that your bot have channel privs to do so)
	- Ex: !demote NoodleMan
	DO
	- Allows you to have another user use a command without them saying anything.
	- Ex: !do admin NoodleMan rename privclass Members to Operators
	- This will be the same as NoodleMan saying !admin rename privclass Members to Operators
	EXEC
	- Execute some PHP code.
	- Ex: !exec dAmn_msg("Hello!", $channel);
	JOIN
	- Has your bot join a channel.
	- !join pchat [name] to join a private chat with [name].
	- ^ The above is the equivalent of /chat with dAmn.extend.
	KICK
	- Has your bot kick someone.
	- Ex: !kick #Botdom NoodleMan :P
	- The channel can be left blank to kick a user in the same chat.
	LIST
	- Displays the users in a chatroom. 
	- !list [channel] to list users from another channel.
	PART
	- Has your bot leave a channel. Works the same as !join.
	PC
	- Manage privclass names.
	- Ex: !pc add Peon 25
	- Ex2: !pc del Peon
	PING
	- Check bot's ping time in seconds.
	PROMOTE
	- Promotes someone. (requires that your bot have channel privs to do so)
	- Ex: !promote NoodleMan
	QUIT
	- Turns the bot off.
	- It's advantage over closing the window is that it empties the session folder.
	RECONFIG
	- Reloads config files. 
	- Use this if you changed something manually and want to update your bot.
	RESTART
	- Restarts bot.
	- Sort of useless since it's only advantage (reloading configs) can be done with !reconfig.
	SAY
	- Have your bot say something. 
	- Usage: !say [channel] [message]. [channel] can be left empty to say 
	- something in the current channel.
	- Ex: !say #Botdom /me eats NoodleMan
	TITLE/TOPIC
	- Display the topic or title of a chatroom.
	- !topic/title [addend/addfro/del] [text] adds [text] to the end, front, or deletes [text] from the
	- topic or title
	- !topic/title [text] changes the topic or title to [text]
	TURN
	- Turns commands on/off by saying !turn on or !turn off
	- Commands in the system folder are not affected
	USER
	- !user [add/del/list] allows you to add/delete/list the bot's user privileges.
	- Ex: !user add NoodleMan 99
	- Ex2: !user del NoodleMan
	- !user list will also list privclass names which can be modified with !pc.
	WHOIS
	- !whois [name] will show detailed information about [name].
	- Shows the data from /whois.

////////////////////////////////////////////////////

And that concludes the NoodleBot readme. Have fun!

NoodleBot 2.5 readme

 ////////////////////////////////////////////////////////////////////////////
//  _   _                       _   _          ______            _         //
// | | | |   ___     ___     __| | | |   ___  |  __  \   ___   _| |_       //
// |  \| |  / _ \   / _ \   / _' | | |  / _ \ | |__) |  / _ \  \_  _/      //
// |     | | (_) | | (_) | | |_| | | | |  __/ | |__) | | (_) |  | |        //
// |_|\ _|  \___/   \___/  |_____| |_|  \___| |______/  \___/   |_|   v2.5 //
//                                                                         //
////////////////////////////////////////////////////////////////////////////

By downloading and reading these directions, you here-by agree to the GNU General Public License as 
outlined in the "GNU General Public License.txt" file included with this download.

The gen_cp2txt Winamp plugin is a property of the outline noted in its respective readme and is in
no way affiliated with NoodleBot.

Everything in NoodleBot has been touched by NoodleMan in some way, if not completely written by him, 
but many others have made contributions. Most notably is doofsmack, who created dAmnbot which this bot
is based upon. Other contributors include (in order of contribution):

# twexler
# radiositysg
# sumopiggy
# Azildin
# Rednaxling
# infinity0
# electricnet
# photofroggy
# groowe

Direct comments, questions, and suggestions to NoodleMan via deviantart or email at nm@thenoodleman.com.
If you have improved upon or added to NoodleBot in any way, feel free to contact me with them, and
I may add them in. Improvements upon the messy stuff would be greatly appreciated.

////////////////////////////////////////////////////
// Contents 
///

# 1.PHP Installation
# 2.NoodleBot Installation
# 3.Running your bot
# 4.Script descriptions and usage
# 5.Config breakdown
# 6.Send.txt
# 7.Changing privilege requirements for commands
# 8.Vend modification
# 9.Song configuration/modification

////////////////////////////////////////////////////
// 1.PHP Installation 
///

This section only needs to be done if you do not already have a version of PHP installed.

// Step 1 //
Download the latest version of PHP from php.net. As of this release, it is 5.1.2, so if you encounter
problems, download this version.

// Step 2 //
Open php.ini-recommended with notepad or wordpad.

Find ";extension=php_bz2.dll". Change it to "extension=php_bz2.dll".
Find ";extension=php_sockets.dll". Change it to "extension=php_sockets.dll".

Save the file as php.ini.

Open the ext folder. Copy the files php_bz2.dll and php_sockets.dll into C:\Windows.

// Step 3 //
The next step is to add PHP to your PATH line. If you have a previous version of PHP that you are 
replacing on your computer and using the same PHP directory, then you can ignore this step.  Otherwise 
continue.

 On Windows NT, 2000, XP and 2003:

	a) Go to Control Panel and open the System icon (Start -> Settings -> 
	   Control Panel -> System, or just Start -> Control Panel -> System for 
	   Windows XP/2003)
	b) Go to the Advanced tab
	c) Click on the 'Environment Variables' button
	d) Look into the 'System Variables' pane
	e) Find the Path entry (you may need to scroll to find it)
	f) Double click on the Path entry
	g) Enter your PHP directory ant the end, including ';' before (e.g. ;C:\php)
	h) Press OK and restart your computer 

On Windows 98/Me you need to edit the autoexec.bat file:

	a) Open the Notepad (Start -> Run and enter notepad)
	b) Open the C:\autoexec.bat file
	c) Locate the line with PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;...
	   and add: ;C:\php to the end of the line
	d) Save the file and restart your computer 

If your OS does not follow as the above directions indicated, more instructions can be found at the 
following URL: 
http://php.planetmirror.com/manual/en/faq.installation.php#faq.installation.addtopath

PHP is not supported by the Bot Developer/Team and all questions or comments with this should be directed to 
to www.php.net and www.zend.com.

PHP is now installed. Proceed to NoodleBot installation.

////////////////////////////////////////////////////
// 2.NoodleBot Installation 
///

NoodleBot is not a spam tool and was designed to be used in conjuction with dAmn Chat from the
deviantArt.com community. Before you begin the process of setting up NoodleBot, you will need to 
have a second deviantArt account for the bot to use.  

// Step 1 //
Register an account for your bot with deviantart.com.  
If you don't have a 2nd account registered then your bot will not work.  
Note that the bot will not function under a nick that is already being actively used by another person.
So, you will not be able to log it in using your own account.

// Step 2 //
Open up config.txt with Notepad or Wordpad. It can be located in your NoodleBot folder.

Enter your information in the spaces provided.
Save and exit.

Congratulations. Your bot is ready to go!
Finally, login and join the chatroom that you set your bot to join.
Proceed to Running your bot. 

////////////////////////////////////////////////////
// 3.Running your bot
///

Right click on noodlebot.php and click properties. 

Find Opens With: near the top. Click the Change button to the right.

Click Browse and find php.exe. It can be found in the php folder you downloaded.

Click Ok, and Ok again.

From now on, all you need to do to run your bot is click on noodlebot.php!

////////////////////////////////////////////////////
// 4.Script descriptions and usage
///

	21
	- Blackjack. !21 [bet] will start a game with your bet of [bet], leave blank for $10. 
	- After that, !21 hit to hit and !21 stay to stay
	8BALL
	- Shake the 8ball...
	ADMIN
	- Works just like /admin
	- Ex: !admin create privclass People order=50
	- Ex2: !admin show privclass
	ALARM
	- !alarm [time] will have the bot alert you in [time] seconds.
	- !alarm min [time] or !alarm hour [time] will alert you in a certain amount of minutes or hours.
	ALERT
	- Alerts you when a user joins a channel
	- Usage: !alert [user] [save]
	- Leave [save] blank if you don't want to save the alert, and say save there if you do want it to be saved (meaning you will be notified if teh user joins a second time, third, etc.)
	- Alert list: !alert list
	- Delete a saved alert: !alert del [user of the alert you want to delete]
	AR
	- Autoresponses. You can add/delete/show autorespones for your bot. An example would be !fart 
	- makes your bot say /me farts.
	- Put %me to have your bot do a /me action, and %0 for what a person says, if you want to be able 
	- to do someone like /me farts in [user]s face
	AWAY
	- !away [msg] sets your away message to [msg]
	- !away back sets you back
	BDAY
	- Stores birthdays and calculates ages and a few other things. Say !bday help for further 
	- information
	BIG
	- Converts letters into ASCII.
	- Usage: !bigsc [channel] [text]
	- [channel] can be left blank to send to the current channel.
	CALC
	- A simple calculator. Addition: + Subtraction: - Multiplication: * Division: /
	COUNT
	- Shows a countdown to a date. Same usage as bday countdown
	DEFINE
	- Defines something using definition data from google.com
	DEMOTE
	- Demotes someone
	DICE
	- !dice [guess] [sides] Rolls a dice with [sides] sides. [sides] can be left blank for a 
	- six sided dice
	DO
	- Allows you to have another user use a command without them saying anything
	- Say !do for syntax
	ECHO
	- Have your bot say what other people are saying in one channel in another. 
	- Usage: !echo [channeltoecho] [channeltosaythestuff]
	- You can turn echos off by saying !echo stopall
	EXECUTE
	- Execute some code
	- Ex: !execute dAmn_msg("Hello!", $channel);
	FACT
	- Show a fact about somebody.
	- Ex: !fact NoodleMan
	- WARNING: This script takes awhile to load. Your bot may not respond for 15-30 seconds.
	FEATURE
	- Can be used to show featured deviations on a timer
	- !feature by [name] sets who it will say the features are by
	- !feature add/del/list add/delete/list features
	- !feature add with nothing after it will show you how to properly add features
	- !feature timer [amount] sets the timer interval in seconds
	- !feature chan [add/del/list] has the bot add/delete/list channels to show features in
	- Simply saying !feature will display a random featured deviation
	FIGHT
	- Fighting game. More of an RPG-ish game. Say !fight to begin.
	FORTUNE
	- Say !fortune to open a fortune cookie.
	GOOGLE
	- Search google
	JOIN
	- Has your bot join a channel.
	- !join pchat [name] to join a private chat with [name].
	KICK
	- Has your bot kick someone
	- Usage: !kick [channel] [user]
	- [channel] can be left blank to kick a user in the same chat
	KR
	- Kick Roulette
	- Kicks a random user
	- Bot must have kick privs in order to kick users
	LIST
	- Displays the users in a chatroom. !list [channel] to list users from another channel
	NOTE
	- Leave notes for others.
	- !note [to] [msg] to send a note
	- !note read to have the bot show your notes again if you've already seen them
	- !note clear to clear your notes
	PART
	- Has your bot leave a channel
	PFORM
	- Forms the /raw to join a pchat.
	- Usage: !pform [user1] [user2]
	PING
	- Check bot's ping time
	PROMOTE
	- Promotes someone
	PV
	- Check how many page views a person has.
	QUIT
	- Turns the bot off
	RESPONSE
	- Similar to autoresponses but you don't have to use your bots trigger key. An example is having 
	- your bot say :salute: whenever someone says :robo:
	- When you first make a response, it can only be triggered by one word. You can change this word 
	- into multiple words by saying !response [onewordtrigger] [newtrigger]
	- Use %kick, %me, %from, and %0 to have the bot kick the user, do a /me, show the user's name,
	- or repeat what the user said
	- %kick and %me must be at the beginning of the response to work
	- Ex: !response add kickme %kick ok
	- Add <newmsg> to have the bot say a new message.
	- Ex: Te<newmsg>xt has the bot say Te, and then say xt.
	RESTART
	- Restarts bot. Useless, as all code that doesn't update automatically cannot be refreshed by 
	- this command
	RPG
	- A very basic game, in fact in its default form it is kind of boring.
	- Open up the script! It isn't difficult to modify and create your own fun text rpg.
	RR
	- Russian roulette. !rr [numberofbullets] to play.
	SAY
	- Have your bot say something. 
	- Usage: !say [channel] [message]. [channel] can be left empty to say something in the current 
	- channel
	- !say /me has your bot do an action
	SHOOT
	- Rock paper scissors, say !shoot [rock/paper/scissors]
	SLOT
	- Slot machine. Say !slot [bet]
	SONG
	- !song to show what you are listening to
	STOPWATCH
	- Say !stopwatch to begin, and !stopwatch again to end the timing.
	SUB
	- Check how much longer a person's subscription will last.
	SYMBOL
	- User symbol definitions
	- Ex: !symbol ~noodleman
	TA
	- Text adventure. To continue from point to point say !ta [oneofthewordsinbold].
	TD
	- Displays the time and date for your timezone
	TERM
	- !term [term] will display some useful terms for those new to deviantart. 
	- Say !term list for a list of terms.
	- !term add [name] [term] adds terms.
	- !term del [name] deletes terms.
	TOPIC/TITLE
	- Display the topic or title of a chatroom.
	- !topic/title [addend/addfro/del] [text] adds [text] to the end, front, or deletes [text] from the
	- topic or title
	- !topic/title [text] changes the topic or title to [text]
	TRIVIA SCRIPTS
		MODE
		- Usage: !mode trivia or !mode normal will switch your bot between trivia and normal mode. 
		- Trivia mode turns on all other trivia scripts.
		GIVE
		- Give a question to someone.
		- Usage: !give [name]
		HINT
		- Show a hint
		Q
		- Use this to add/edit questions
		- !q q [question] : add a new question
		- !q e [id] [question] : edit a question already made 
		- !q a [id] [answer] : add an answer to question #[id]
		- !q h [id] [hint] : add a hint to question #[id]
		- !q s [id] : Show a question and its corresponding answer and hint
		ROW
		- Most questions answered in a row
		SCORE
		- Show a score for someone. Usage: !score [name]
		TIMER
		- Shows seconds left in trivia timer.
		TOP
		- Shows toplists
		- Usage: !top [5/10]
		TOTAL
		- Total number of questions
	TURN
	- Turns scripts in the scripts folder on/off by saying !turn on or !turn off
	- Scripts in the system folder are not affected
	UPDATES
	- Saying !updates will show a list of updates for your bot.
	- !updates info [file] will show info on an update.
	- !updates dl [file] will download an update.
	- You can leave [file] blank and just say !updates dl to download all new updates.
	URBANDICT
	- Displays a definition from urbandictionary.com
	- !urbandict all [word] will display all definitions for [word].
	- By default, only one definition is displayed.
	USER
	- !user [add/del/list] allows bot admins to add/delete/list the bots user privileges
	VALIDATE
	- Validates a page's xhtml.
	- Usage: !validate [url]
	VEND
	- Get a drink from the vending machine.
	WAR
	- Deal a hand at war. The card game.
	WATCH
	- !watch [name] [name2] will check if [name2] is watching [name]
	WELCOME
	- Sets custom welcomes.
	- Usage: !welcome [msg]
	- Say !welcome off to turn yours off
	- Welcomes must be set to indv with !wt for these to be used.
	- If welcomes are set to pc, useage is !welcome [pc] [welcome]
	- Ex: !welcome Guests Haha!
	WHOIS
	- !whois [name] will show detailed information about [name]
	WORD
	- A random word generator. Say !word [#] for a word with a specific length.
	- Ex: !word 7 could perhaps generate sputnik.
	WT
	- Usage: !wt [all/indv/off/pc] [message]
	- All sets the same message for everyone ([message]).
	- Indv lets everyone have their own individual welcome message, set by !welcome
	- Pc sets welcomes for each privclass, set by !welcome
	- Off turns welcomes off. Welcomes are off by default.
	YANK
	- A random slang term for masturbation :D !yank [name] to send [name] a yank

////////////////////////////////////////////////////
// 5.Config breakdown
///

$version: Your bot version. Used in the about command.
$botusername: Your bot's username.
$botpassword: Your bot's password.
$adminusername: Your username.
$homechat: Your bot's home chat.
$trigger: Your bot's trigger key. Must be said before all commands. (Ex: !say peanuts)
$autorejoin: Change true to false if you don't want your bot to rejoin a chat after it is kicked.
$showsongs: Change false to true if you want your bot to turn on the song script.
$noodlebotai: Change to true to turn on your bot's ai.
$about: Text to be said for the about command.

$access: Privclasses and their level. If a script requires Admin privileges, than anyone in a
	privclass that has a 3 or higher (not counting 99) will be able to use the script.
	Please leave Admin, Operator, and Member. You may change the order, or add privclasses
	in-between.

$dlist: Folders in the scripts folder where scripts can be found. They are in order of priority. (A script in
	system named say will run instead of a script in ext named say.)

$aidata: Information for use in the AI extension.

$ctrivia: For use with the trivia extension.
	channel: Channel to run trivia in.
	qinterval: Time interval between questions (in seconds).
	timeout: Time users have to answer a question (in seconds).

////////////////////////////////////////////////////
// 6.Send.txt
///

Send.txt causes the bot to send information. Format for typing in send.txt:

[channel] [text]
Example: botdom Hello!

Save the file, and if your bot is on and in the channel, it will say the text.

Send.txt can do more than just say stuff. Use / commands to activate your bots commands.

Example: botdom /calc 1+1
Result: <bot> result: [2]

Example: botdom /execute dAmn_msg("Hello!", $channel);
Result: <bot> Hello!

////////////////////////////////////////////////////
// 7.Changing privilege requirements for commands
///

First, open the file of the command you wish to change.

If, at the top, you see 'if(!user_has($from,' then change what you see in the quotes after $from,
to whatever you want it to be.

If you do not see this, add this line to the top of the code (after <?php):
if(!user_has($from, 'Privclass')) return;

Change Privclass to whatever you like.

////////////////////////////////////////////////////
// 8.Vend modification
///

Open up scripts/fun/vend.php.

You will see a list of drinks. Add new ones with the same format.
Ex:   'peanuts',

You will also see '$quality=2;'.
Change 2 to another number to affect the vending machine quality.
Higher is better. A zero quality vending machine will always jam.

////////////////////////////////////////////////////
// 9.Song configuration/modification
///

The song script will display the song you are currently listening to on your computer.

First, you need the Winamp music play, which can be found at www.winamp.com.

Copy the contents of the Winamp Plugin folder (located in scripts/song/)
into "C:\Program Files\Winamp\plugins".

Open up the preferences window in Winamp (ctrl+p) and under plugins click "General Purpose".

Find "Currently Playing To Textfile v0.4" and click configure. In the window that opens, find your
bots song.txt file and select that. (Located in scripts/song/)

Now you have the plugin set up, so it's time to configure it for your NoodleBot.

Open script/song/config.txt and fill out the information. Save and exit.

Open up config.txt and change $showsongs=false; to $showsongs=true;.

You're ready to go! Start up your bot, start some music in Winamp, and enjoy!

////////////////////////////////////////////////////

And that concludes the NoodleBot readme. Have fun!
Personal tools