plugin-avatar-upload for Kiwi IRC
This plugin allows users to upload their own avatars.
It requires the ircd to support EXTJWT tokens, and a php server to upload the avatars to.
- node (https://nodejs.org/)
- yarn (https://yarnpkg.com/)
-
Build the plugin
$ yarn $ yarn build
The plugin will then be created at
dist/plugin-avatar-upload.js
-
Copy the plugin to your Kiwi webserver
The plugin file must be loadable from a webserver. Creating a
plugins/
folder with your KiwiIRC files is a good place to put it. -
Add the plugin to KiwiIRC
In your kiwi
config.json
file, find theplugins
section and add:{"name": "avatar-upload", "url": "/plugins/plugin-avatar-upload.js"}
note: This plugin changes its behaviour based on the presence of other plugins. It is recommended to load this plugin after
plugin-asl
andplugin-avatars
"plugin-avatar-upload" : {
// Url path to api.php
"api_url": "/path/to/api.php",
// Url path to avatar storage directory
"avatars_url": "/path/to/avatars/",
// Avatars will be preloaded to check they exist on the server
// with this set to false it it recommended to have a default avatar
// in place of the 404 page for your avatars directory
"preload_avatars": true,
// Enables the setting of account avatars
"set_avatars": true,
},