Coder Social home page Coder Social logo

kiwiirc-plugin-asl's Introduction

Custom Startup for Kiwi IRC

This plugin creates a customised startup screen for age/sex/location based off Welcome.vue

It then display's this data in a customised userbox based off UserBox.vue

It also provides a nicklist style user list with search/filter for users to find other chatters

Dependencies

Building and installing

  1. Build the plugin

    $ yarn
    $ yarn build

    The plugin will then be created at dist/plugin-asl.js

  2. 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.

  3. Add the plugin to KiwiIRC

    In your kiwi config.json file, find the plugins section and add:

    {"name": "asl", "url": "/plugins/plugin-asl.js"}

    To enable the startup screen, tell KiwiIRC to use the startup screen from the plugin. Set "startupScreen" to plugin-asl.

Configuration

More details on the wiki

note: the variables starting with _ are treated as translation keys

"plugin-asl" : {
    "localesPath": "/static/plugins/plugin-asl/locales",
    "gecosType": 1,
    "showRealname": false,
    "showUserBrowser": true,
    "userBrowserIcon": "fa-heart",
    "fallbackColour": "default",
    "singleLineUserbox": false,
    "singleLineString": {
        "age": "%a years",
        "sex": "%s",
        "location": "%l",
        "separator": " ",
    },
    "allowedAge": {
        "min": 18,
        "max": 99
    },
    "ageRanges": [
        { "name": "_all", "value": "all" },
        { "name": "< 25", "value": "<25" },
        { "name": "25 - 45", "value": "25-46" },
        { "name": "> 45", "value": ">45" },
    ],
    "sexes": [
        { "name": "_male", "chars": "M", "colour": "#00F" },
        { "name": "_female", "chars": "F", "colour": "#F0F" },
        { "name": "_other", "chars": "O", "colour": "#F00" },
    ],
    "queryKeys": {
        "age": "age",
        "sex": "sex",
        "location": "location",
        "realname": "realname",
    },
    "requiredFields": [
        "age",
        "sex",
        "location",
    ],
},

License

Licensed under the Apache License, Version 2.0.

kiwiirc-plugin-asl's People

Contributors

itsonlybinary avatar prawnsalad avatar thebeerbarian avatar westor7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.