Example:
We want to find out what 'banana' is set to, in the database.
[15:34] <Floris> ?? banana
[15:34] <database> banana[x]: No definition found for word.
It is empty, it turns out the entry does not exist.
Now we can use the ??channel add command to add something for it.
[15:36] <Floris> ??channel add banana yellow
[15:36] <database> Definition added
We told it to store a definition for banana, and the bot replied it has done so.
Now if we query the bot for banana again, we obviously get this:
[15:36] <Floris> ?? banana
[15:36] <database> banana#: yellow
Note: The reply has the # character behind it, indicating this is a channel only definition for banana.
We can add banana again, or rather, using the add command, add another definition for banana:
[15:39] <Floris> ??channel add banana Great in a bananasplit
[15:39] <database> Definition added
The definition got added, the bot confirmed this.
Now if we query the bot for banana, see what happens:
[15:40] <Floris> ?? banana
[15:40] <database> banana[1]#: yellow
[15:40] <database> banana[2]#: Great in a bananasplit
We have 2 entries for # this channel, saying yellow for one, and great in a bananasplit for the other.
An advanced option for add are variables, a quick and simple example is to use $1,
allowing you to add a dynamic definition. Let's add something like 'throwing a banana at ...someone':
[15:43] <Floris> ??channel add banana $n throws a banana at $1. Score!
[15:44] <database> Definition added
Note: The $n is a variable for the nickname who queries the bot, and the $1 is the first variable.
Now, if we query the bot with a variable (a user, aka: target) we do it like this:
[15:45] <Floris> ?? banana Chroder
[15:45] <database> banana[1]#: yellow
[15:45] <database> banana[2]#: Great in a bananasplit
[15:45] <database> banana[3]#: Floris throws a banana at Chroder. Score!
As you can see, user Floris queried the bot, we get all the definitions,
but the third one replaced the variables making the entry dynamic.
Note: we use ??channel, so this entry will only show up in this particular channel!
If you change to another channel where the bot is, and query ?? banana
you will only get that channel's definitions and the global ones (if any).
Using the del,app,pre,ins,put,rep commands you can now manipulate the banana keyword definitions further.