App::Alice(3pm)
β¨ NAME β¨
Heyyy bestie π¦ okay so this is App::Alice(3pm), which is part of the User Contributed Perl Documentation π and honestly? It's giving everything. Its name is App::Alice, short for an Altogether Lovely Internet Chatting Experience πΈπ
β¨ SYNPOSIS β¨
Literally just type this and you're in π§
arthur:~ leedo$ alice
Location: http://localhost:8080/
β¨ DESCRIPTION β¨
Alice is an IRC client that you use in your web browser π Lowkey genius: she runs in the background keeping your connections alive and collecting messages π«Ά When a browser connects, it shows the 100 most recent messages for each channel, then updates with new ones as they roll in β¨
Alice also logs messages to an SQLite database π and you can search those logs through the web interface π
β¨ USAGE β¨
Installing adds a new alice command that starts the alice server π Run it and it'll start the daemon and print the URL to load in your browser π
β¨ COMMANDLINE OPTIONS β¨
-d,--debugβ Prints extra debug info. Super useful for development, or for figuring out what's gone wrong π-p,--portβ Changes the port the HTTP server listens on. The default is8080π-a,--addressβ Changes the IP address the HTTP server listens on. The default is127.0.0.1, which means alice only accepts local connections unless you say otherwise π If you want to connect remotely, switch it to the IP you want to listen on, or use0.0.0.0to listen on all addresses π
β¨ CONFIGURATION β¨
Most of alice can be configured through the web interface π οΈ There are two windows for this: Connections and Preferences. To pull either one up, click the gear icon in the bottom right hand corner of the page βοΈ
This should bring up the new window πͺ Heads up, though: some browsers (specifically Chrome) block this popup by default π If it doesn't show up, make sure you allow popups!
β¨ CONNECTION WINDOW β¨
The Connection window is where you add or remove servers π It'll feel super familiar if you've ever used an IRC client (and I'm assuming you have, bestie π)
The only real difference is the "Avatar" field π In reality, this field just sets the realname. Alice abuses this field to get avatars for users π€ If a user has an image URL or an email address as their realname, alice will show the image next to their messages πΌοΈ You can turn this off in the Preferences window.
β¨ PREFERENCES WINDOW β¨
The Preferences window is for settings that aren't tied to a specific connection π You can toggle avatars, timestamps, and notifications on or off, and you can edit a list of highlightable terms β¨
β¨ HTTP AUTHENTICATION β¨
Some config options don't have a UI yet π₯Ί The biggest one is HTTP authentication. If you want to use it, you'll have to edit your config file by hand. You'll find it at ~/.alice/config π
The config is just a perl hash π§ So if you know perl, it won't be too intimidating. If you don't know perl, sorry! :)
You'll need to add user and pass values to the auth hash. Your section of config might look something like this:
'auth' => {
'user' => 'lee',
'pass' => 'mypassword',
},
β¨ COMMANDS β¨
/j[oin] [-network] $channelβ Takes a channel name plus an optional network flag. If you don't give a network flag, it uses the network of the current tab π¦/closeβ Closes the current tab. If you use it in a channel, it'll also part the channel π/wcand/partare aliases for/closeπ
/clearβ Clears the current tab's messages from your browser. It also clears the tab's message buffer, so refreshing won't bring them back π§Ή/msg [-network] <nick> [<msg>]β Takes a nick and an optional network flag. No network flag? It uses the network of the current tab. A third argument can hold the message text. If you skip the message text, you'll get a blank tab opened for you π/queryis an alias for/msgπ«Ά
/whois [-force] <nick>β Takes a nick and an optional force flag, then prints some info about that user π If you add the force flag, the info gets refreshed from the server π/quote <command>β Sends a string as a raw message to the server π§Ύ/rawis an alias for/quoteβ¨
/t[opic] [<topic>]β Takes an optional topic string and displays the topic for the current tab π£ If you supply a string, it'll try to update the channel's topic. This only works in a channel π/n[ames] [-avatars]β Prints a table of all the nicks in the current tab π Add the optional avatars flag to include avatars πΌοΈ/me <action>β Sends a string as an action to the channel π For example, e.g.:
* lee hits clint with a large trout
/w[indow] <number>β Focuses the tab number you give it. It also acceptsnextorprevπββοΈ The space after the w can be left out, so/w4focuses window 4 π/connect <network>β Connects to a network. The network has to be the name of a server from the Connections window π If you're already connected, it does nothing π/disconnect <network>β Disconnects from a network. Same rule: the name has to be a server from the Connections window πͺ This also stops any reconnect timers for that network β°/ignore <nick>β Ignores any nick that matches the one you give it, across all networks π/ignoresβ Lists all active ignored nicks π/unignore <nick>β Unignores a nick π«
β¨ NOTIFICATIONS β¨
If someone says your nick while no browsers are connected, you'll get a notification π It uses Growl (if you're running OS X) or libnotify (on Linux) π§
You can add extra patterns to highlight in the Preferences window π
If you're using Fluid.app (a SSB for OS X) or Chrome, you can also get notifications when the window is unfocused πͺ
β¨ MOBILE INTERFACE β¨
Alice has an iPhone style sheet π± It may work in other mobile browsers too. Any help or bug reports would be sooo appreciated π₯Ή
β¨ COPYRIGHT β¨
Copyright 2010 by Lee Aylward <leedo@cpan.org>
This program is free software π You can redistribute it and/or modify it under the same terms as Perl itself π§
And that's the tea, bestie π΅β¨ This page came from perl v5.26.2, dated 2018-05-07, under the name App::Alice(3pm). Periodt! π π¦
π¦ where this page comes from
- debian bookworm: alice 0.19-2
- ubuntu jammy: alice 0.19-2
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms