Skip to content

Instantly share code, notes, and snippets.

<style>
.kiwi-nicklist-user-prefix {
display: none;
}
.kiwi-nicklist-user--mode-o .kiwi-nicklist-user-nick::before {
content: "\f222";
font-family: fontAwesome;
}

reCaptcha / hCpatcha

Kiwi IRC can support either reCaptcha or hCaptcha and can always ask for verification or based on dnsbl response

reCaptcha

To enable reCaptcha support a site key and secret is required from google. These can be obtained here

config.conf

note: if required = false then [dnsbl] section applies

[verify]
recaptcha_secret = "SECRET KEY HERE"
[Unit]
Description=Kiwi IRC webircgateway
After=network.target
[Service]
User=kiwiirc
Group=kiwiirc
ExecStart=/usr/bin/webircgateway --config=/etc/kiwiirc/config.conf
ExecReload=/usr/bin/kill -HUP $MAINPID
WorkingDirectory=/usr/local/kiwiirc/
[Unit]
Description=KiwiIRC plugin fileuploader
After=network.target
[Service]
User=kiwiirc
Group=kiwiirc
ExecStart=/usr/bin/kiwiirc-fileuploader --config=/etc/kiwiirc/plugin-fileuploader.toml
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/usr/local/kiwiirc/
# clone repos
git clone https://github.com/kiwiirc/kiwiirc.git ~/kiwiirc/kiwiirc
git clone https://github.com/kiwiirc/webircgateway.git ~/kiwiirc/webircgateway
git clone https://github.com/kiwiirc/plugin-fileuploader.git ~/kiwiirc/plugin-fileuploader
# make destination directories
mkdir -p ~/kiwiirc/run/plugins
mkdir -p ~/kiwiirc/run/www
# setup fileupload as plugin
<script>
kiwi.plugin('user-colour', function(kiwi, log) {
var nextRender = false;
// listen for first message to render
// this changes colour at startup
listenRender();
kiwi.on('active.component', function() {
// When returning from other components like settings
// listen for first message to render
<template id="avatar">
<div
:data-nick="message&&message.nick"
:class="[hasAvatar ? 'kiwi-avatar--image' : '']"
class="kiwi-avatar"
>
<span :style="avatarStyle">{{ hasAvatar ? '' : firstNickLetter }}</span>
</div>
</template>
{
"windowTitle": "Kiwi IRC - The web IRC client",
"startupScreen": "personal",
"kiwiServer": "http://example.com/webirc/kiwiirc/",
"restricted": false,
"theme": "Default",
"themes": [
{ "name": "Default", "url": "static/themes/default" },
{ "name": "Dark", "url": "static/themes/dark" },
{ "name": "Coffee", "url": "static/themes/coffee" },
@ItsOnlyBinary
ItsOnlyBinary / always-nicklist.html
Created November 12, 2019 15:29
Always show the nicklist when switching buffers
<script>
kiwi.state.$watch('ui.active_buffer', function(){
if (kiwi.state.getActiveBuffer().isChannel()) {
kiwi.emit('sidebar.show', 'nicklist');
}
});
</script>
<template id="userbox_button">
<a v-if="count > 0" class="kiwi-userbox-action" @click="buttonClicked($event)">
<i class="fa fa-warning" aria-hidden="true"></i>
Do NOT Press
</a>
</template>
<script>
kiwi.plugin('test_userbox_button', function(kiwi, log) {
var testArgs = {};