EiraIRC (Discontinued)

EiraIRC (Discontinued)

273k Downloads

Config Changes

BlayTheNinth opened this issue ยท 2 comments

commented

Defining servers and channels in the .cfg file has been quite ugly from the start and was just getting worse with more features being added.
Since we already split the config file up a little, I want to add another folder: config/eirairc/servers.

This folder would contain either .json or .xml files (not sure yet, maybe both) with a new format for server configuration, one server per file.

One important feature of this will be smaller inline bot profiles for those server owners who don't care about the complicated EiraIRC config stuff and just want their shit to work.
They'll probably extend an existing profile, with ability of overwriting the common relayXYZ options; so like in the old baby days of EiraIRC.

commented

Also, split eirairc.cfg into eirairc_client.cfg and eirairc_shared.cfg? Client would contain the client-only options (keybinds, notifications, clientonly). Love or Hate?

commented

The goal is to shove the concept of bot profiles back into the background. They should define default settings, but users shouldn't worry about them unless they want to get into complicated stuff such as custom commands.

To make things easier, there will only be one servers.json file - most of the time you're only connected to one server anyways and then we won't have files all over the place.
The servers.json file will be constructed in a modular kind of way; there are required must-have options for the server / channel and then there's sections you can opt-into to override default values.
The hierarchy goes from (Internal) Profile -> Server -> Channel.

See http://pastebin.com/s6CYdReF for an example of how the servers.json could look.

Any option can be overridden anywhere (see how I opt-in to the theme section in the PlayTPPI channel to make the irc color red instead of the green that was inherited from the server).

The eirairc/bots/ directory will remain untouched for now, but might be gotten rid of completely again once I add a better way of defining custom commands.