You must specify an API key in the the dmdirc.addons.apikey property
The ID of the addon to be published must be specified in the addon.id property
The channel of the addon to be published must be specified in the addon.channel property.
Use 1 for Stable, 2 for Unstable, or 3 for Nightly.
The file of the addon to be published must be specified in the addon.file property