Class Irc::Language |
|
![]() |
the bot's language class. This is how the bot communicates, by looking up strings through this class. So instead of saying "okay", the bot looks up "okay" in the Language class, which will return one of several "okay" strings defined in its language file. Different language files can be used for different real languages, or even to simulate different bot personalities.
Methods |
Public Class methods |
new(language) |
Create a language class instance of language language
Public Instance methods |
scan() |
load language data from files
rescan() |
reload language data from files
get(key) |
get suitable expression for key