Skip to content

Instantly share code, notes, and snippets.

@AndrioCelos
Last active November 22, 2015 15:32
Show Gist options
  • Save AndrioCelos/83bf91b173b613b04a50 to your computer and use it in GitHub Desktop.
Save AndrioCelos/83bf91b173b613b04a50 to your computer and use it in GitHub Desktop.
Example configuration files for CBot.
[Me]
; The nicknames the bot will try to use, in order of preference.
Nicknames=Angelina,Lina
; The ident name of the bot.
Username=Angelina
; The full name/real name/gecos of the bot.
FullName=2Angelina
; The response to CTCP USERINFO.
UserInfo=CBot by Andrio Celos
; This section specifies the IRC network to which the bot will connect. There can be as many of these as you need.
[AndrioTest]
Address=127.0.0.1:6697
; Nicknames, Username, FullName are optional; omitting them will use the general values from the Me section.
Nicknames=Angelina,Lina
Username=Angelina
FullName=2Angelina, Guardian of the server
; Channels to join automatically.
Autojoin=#angelina,#BattleArena,#BattleDungeon
; If this is set to Yes, use TLS.
SSL=Yes
; If this is set to Yes, invalid certificates will be ignored.
AllowInvalidCertificate=Yes
; Currently only NickServ is supported, and not Q etc.
; The nicknames registered with NickServ.
NickServ-Nicknames=Angelina,Lina
; The password used to identify.
NickServ-Password=hunter2
; Set this to Yes if your version of NickServ allows identification from a non-grouped nickname, using the syntax IDENTIFY username password
NickServ-AnyNickname=Yes
; A hostmask that NickServ should match.
NickServ-Hostmask=NickServ!services@services.test.andriocelos.ml
; A mask used to detect the request to identify.
NickServ-RequestMask=This nickname is registered and protected.*
; If these are specified, the bot will attempt to authenticate using SASL if the server supports it.
SASL-Username=Angelina
SASL-Password=hunter2
; This section can be used to specify command prefixes for specific channels.
; The default is '!'
[Prefixes]
AndrioTest/#battlearena=-
; This file lists plugins that add features to the bot.
; Each instance of a plugin is identified by a key, which may or may not be the name of the plugin.
; This is so that you can run instances of the same plugin in different channels.
; Each section specifies a plugin instance that the bot should load upon starting up.
; The section header is the key. It must be unique, and should be limited to alphanumeric characters, hyphens and underscores.
[Bot]
Filename=plugins\BotControl.dll
; Channels specifies a list of channels for which the plugin will receive events and commands.
; You can use any of the following formats: #channel, NetworkName/#channel, NetworkName/*, *
Channels=*
[Plugin]
Filename=plugins/PluginManager.dll
Channels=*
[UNO]
Filename=plugins/UNO.dll
Channels=AndrioTest/#uno
; This file specifies permissions that should be given to certain users.
; Each section header represents a user name or mask, and lines within the section list permissions.
; You can negate permissions with a '-' prefix.
; A bare nickname is interpreted as an account name. The 'Identify' plugin lets you identify to the account using a password.
[Andrio]
; This line specifies a hash of the password, using SHA-256 with salt.
; If this file is missing as the bot starts, it will help you generate this hash.
Password=...
; This is an example of an 'admin' account that has all permissions. 'irc.*' permissions are automatically excluded from '*'.
*
irc.autoop.AndrioTest.#angelina
; This is an example of hostmask matching. If you have a vHost, you can give yourself permissions without having to identify to the bot using this:
; [*!*@guardian.of.angel.falls]
; The consolew is actually treated for most purposes as an IRC channel. Thus, you can give yourself permissions there like so.
[User!User@Console]
*
; This section matches anyone with op status on a channel.
; More $ masks will be added soon.
; Currently you can also use $q, $a, $h or $v for the corresponding channel modes.
[$o:127.0.0.1/#angelina]
UNO.stop
; This section matches all users.
[*]
UNO.start
UNO.wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment