nwitch-base64
nwitch (and slate-irc) plugin for base64 encoding and decoding.
05:34 <KenanY> !base64 encode Hello World05:34 <nwitch> KenanY: SGVsbG8gV29ybGQ=05:35 <KenanY> !base64 decode SGVsbG8gV29ybGQ=05:35 <nwitch> KenanY: Hello World
Example
As a nwitch plugin (using config.toml
):
[plugins]nwitch-base64 = true
Or through nwitch's API:
var Nwitch = ;var nwitchBase64 = ;var nwitch =irc:address: 'irc.freenode.org'port: 6667;nwitch;
Technically, all nwitch plugins are just slate-irc plugins, so you could also use this as a slate-irc plugin:
var net = ;var irc = ;var nwitchBase64 = ;var stream = net;var client = ;client;
Installation
$ npm install nwitch-base64
API
var nwitchBase64 = ;
nwitchBase64()
Returns a function that accepts an instance of slate-irc.