Skip to content

Commit

Permalink
Move IRC to libera.chat network
Browse files Browse the repository at this point in the history
  • Loading branch information
joshproehl committed May 26, 2021
1 parent e8ae99d commit 57ee00d
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 27 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ be adapted to deploy elsewhere.

Specific instructions for each application lie in the README files in their
respective folders in apps/.

## Development
To begin development:
* clone the repo and CD into the directory
* create the .ansible_vault_pass file containing the correct ansible vault password
* `asdf install` to install the correct erlang/elixir/nodejs versions using ASDF`
then follow the instructions for each app in the apps/ directory.
5 changes: 5 additions & 0 deletions apps/marvin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ are important, but he does his job, with only minimal complaint.
Visit Marvin [here](https://wa7vc.org/marvin) to see what he's up to.

## Development
Prepping for development is simple. In the marvin directory run:
* mix deps.get


To start the server in development and let marvin and the website frontend work
together marvin must be launched from from the apps/marvin directory passing
the --name flag to iex: `iex --name "marvin@127.0.0.1" -S mix`
Or, for convenience, just `./run_dev_server.sh`

If multiple developers are developing on Marvin at the same time there will be
collisions in the IRC channel as they try to use the same name. Developers can
Expand Down
4 changes: 2 additions & 2 deletions apps/marvin/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ config :marvin, topologies: [

config :marvin, Marvin.IrcRobot,
adapter: Hedwig.Adapters.IRC,
server: "chat.freenode.net",
server: "irc.libera.chat",
port: 6697,
ssl?: true,
name: "WA7VC",
full_name: "Marvin the WA7VC Robot",
aka: "!",
rooms: [
{"#wa7vc", ""},
{"#WA7VC", ""},
],
responders: [
{Hedwig.Responders.Help, []},
Expand Down
3 changes: 3 additions & 0 deletions apps/wa7vc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ The WA7VC website frontend.
It's a website. Not a lot to say. :-)

## Development
A simple `mix setup` should do the trick!

To start the server in development and be able to communicate with Marvin
the app must be launched from the apps/wa7vc directory passing the --name
flag to iex: `iex --name "wa7vc@127.0.0.1" -S mix phx.server`
Or, for convenience, just `./run_dev_server.sh`

## Deployment
Marvin and the WA7VC website are deployed as two unique OTP apps, allowing
Expand Down
2 changes: 1 addition & 1 deletion apps/wa7vc/lib/wa7vc_web/live/marvin_live.html.leex
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

<div class="cell small-12 medium-6 large-4 marvin-stat-block">
<h3>IRC</h3>
In #wa7vc on freenode:
In #WA7VC on irc.libera.chat:
<ul>
<li>There are currently <%= @irc_users_count |> Number.Delimit.number_to_delimited(precision: 0) %> users.</li>
<li>
Expand Down
48 changes: 24 additions & 24 deletions vars/secrets.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
$ANSIBLE_VAULT;1.1;AES256
62626461656239396236626539303535313430333963306562313234333631393734366130393763
6562353130376466633266333433333433383966336433610a323263326565613231633938303432
63363933313066643139656634363131363736643166353562386238373762333261353363316532
3536396337373066320a656166336263643765313337363434313764353632396539353032663136
31666562326637333761363661633136663065346134343234653431663464653131636337616166
66343665363962303963333330333561666537373562356662366336373333616563613534353835
39323839393461333037613062393063623561633638303930346331633564616430396438646336
33373662613937633134653366346639616564663835643366316562376566653030363038653466
62393064316465656161386464316666613136376465336635626262323931346132386437633461
33623264383137653064633563343531303862323831643337366663393031313864653332383462
62326464666463653862356235666134366331393064623766313465666632313736326633623531
38336463336532333938356636313330303232353931633534313634346134363962633635323333
39616133643335346432613939666634313738353133386335353066613134653234363564633531
38653633356635303134386231626233613530656238363537363261323536613338636664613536
32616233346130323334623831396566363265363264633264363038376665376362356662343036
36396431333332386637393465393961633639653038366361393165343038383739303364306431
63313530613362626530326335636537313462356135313332663066313762663937363338616637
36396664613865643832396532343866373139366139653738333438633134323538353762613835
66313434323064336533643565396139613436363562613263333364313564633935653661636435
33383137343633646562653430666262343535343638616638376532656265383563333166313263
35356132643562373435316565313138356461356435656364653337376362613838383639393034
33656362353638353530303530343963646363663632623463656238323134313262323834333761
33633465326632636262323261353736393734386330383562353836343261383635303964626239
39373366653834373462
34373834353738636538343261636536326364613433613534633338616362376533343338303638
6538313330373638366161323134616636386235313364660a633132343062356530373837363161
65383638326334373165333931616134386366363236663863363164386666356464613139656165
6365376431356466360a646465333530313965383437663964356230303837336664663037633336
30336232343761306133343436303838353337343364666535333462313366326134323837623631
63373737383030356365326237303464386433323232393862313334306133653964316233316163
36383661336666633737643531663038343135333839613731393366643865353363363230336337
34316138663137386531383235663730663938326236643536363838343634353231393964363331
39656562363064626535303061653735303662383435336434343262303165343830656365326230
35623761666635383631353866323666376664623365393334643030393339313433613664363230
65663465393737353931313439393164373938653434336263356232373938336561623637666632
35366333656337666332663362383738613032393432356563383138653163393466616439323161
64326334303961343537383665623330343535386564313638626133356237383137656531363266
37623061343665316130383437613861333437663166373135656139373464646539326237363761
66643064613337396462343030363936616338353463656337623536663136326663616332386530
30396238353933323463366632303730303162633532376135663163373331326233383662626538
63396462316535626137383838663230646339666531363933353036366661623865616361346464
66656132623665373532306536343731376466636437396463613931316365613332346230613561
33326562313136313464303735343530396236343035633935366239383531626165323639353565
30333731353738313864396537343430633339653530303035363165396533303865393132636363
34396165303934383131383666366332396566323138613633386565626465376530646437343666
63366261336235343336333934393530303862663833326436326634366430353163383435326462
65643564373136356433313732336439333435326232366436653934643732356530323761386664
66333632623865633363

0 comments on commit 57ee00d

Please sign in to comment.