mirror of
https://github.com/kmein/niveum
synced 2026-03-28 23:31:07 +01:00
Compare commits
3 Commits
a65a4b28da
...
bc4e25a42d
| Author | SHA1 | Date | |
|---|---|---|---|
| bc4e25a42d | |||
| 96627b6f50 | |||
| 6f2a824d8b |
@@ -68,7 +68,7 @@ in {
|
|||||||
/set irc.server.news.command "/oper aids balls"
|
/set irc.server.news.command "/oper aids balls"
|
||||||
/set logger.level.irc.news 0
|
/set logger.level.irc.news 0
|
||||||
|
|
||||||
/filter addreplace zerocovid * * [kc]orona|[kc]ovid|virus|lockdown|va[kc][sc]in|mutante|mutation|impf|pandemi|κορ[ωο]ν[αο]ϊό|корона|expert|infe[ck]t|infizi|in[cz]iden[cz]|sars-cov|drosten|virolog|lauterbach|delta
|
/filter addreplace zerocovid * * [kc]orona|💉|🤒|😷|[kc]ovid|virus|lockdown|va[kc][sc]in|mutante|mutation|impf|pandemi|κορ[ωο]ν[αο]ϊό|корона|expert|infe[ck]t|infizi|in[cz]iden[cz]|sars-cov|drosten|virolog|lauterbach|delta
|
||||||
/filter addreplace joinquit * irc_join,irc_part,irc_quit,irc_nick *
|
/filter addreplace joinquit * irc_join,irc_part,irc_quit,irc_nick *
|
||||||
/filter addreplace playlist_topic irc.*.#the_playlist irc_topic *
|
/filter addreplace playlist_topic irc.*.#the_playlist irc_topic *
|
||||||
/filter addreplace brockman_notice irc.news.* irc_notice *
|
/filter addreplace brockman_notice irc.news.* irc_notice *
|
||||||
|
|||||||
@@ -94,12 +94,12 @@ in {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
block = "custom";
|
block = "custom";
|
||||||
interval = 60 * 60;
|
interval = 60 * 5;
|
||||||
command = let inherit (import <niveum/configs/spacetime.nix>) location; in "${pkgs.scripts.horoscope}/bin/horoscope --latitude=${toString location.latitude} --longitude=${toString location.longitude}";
|
command = let inherit (import <niveum/configs/spacetime.nix>) location; in "${pkgs.scripts.horoscope}/bin/horoscope --latitude=${toString location.latitude} --longitude=${toString location.longitude}";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
block = "custom";
|
block = "custom";
|
||||||
interval = 60 * 60;
|
interval = 60 * 5;
|
||||||
command = let spacetime = import <niveum/configs/spacetime.nix>; in pkgs.writers.writePython3 "sun.py" { libraries = [ pkgs.python3Packages.astral ]; flakeIgnore = [ "E121" "E501" ]; }
|
command = let spacetime = import <niveum/configs/spacetime.nix>; in pkgs.writers.writePython3 "sun.py" { libraries = [ pkgs.python3Packages.astral ]; flakeIgnore = [ "E121" "E501" ]; }
|
||||||
''
|
''
|
||||||
import astral
|
import astral
|
||||||
|
|||||||
@@ -44,12 +44,12 @@ in
|
|||||||
pkgs.writers.writeDashBin "pls" ''
|
pkgs.writers.writeDashBin "pls" ''
|
||||||
case "$1" in
|
case "$1" in
|
||||||
good|like|cool|nice|noice|top|yup|yass|yes|+)
|
good|like|cool|nice|noice|top|yup|yass|yes|+)
|
||||||
echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.good)} | shuf -n1 | ${sendIRC}
|
|
||||||
${pkgs.curl}/bin/curl -sS -XPOST "${playlistAPI}/good"
|
${pkgs.curl}/bin/curl -sS -XPOST "${playlistAPI}/good"
|
||||||
|
echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.good)} | shuf -n1 | ${sendIRC}
|
||||||
;;
|
;;
|
||||||
skip|next|bad|sucks|no|nope|flop|-)
|
skip|next|bad|sucks|no|nope|flop|-)
|
||||||
echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.bad)} | shuf -n1 | ${sendIRC}
|
|
||||||
${pkgs.curl}/bin/curl -sS -XPOST "${playlistAPI}/skip"
|
${pkgs.curl}/bin/curl -sS -XPOST "${playlistAPI}/skip"
|
||||||
|
echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.bad)} | shuf -n1 | ${sendIRC}
|
||||||
;;
|
;;
|
||||||
recent)
|
recent)
|
||||||
${pkgs.curl}/bin/curl -sS -XGET "${playlistAPI}/recent" | tac | head
|
${pkgs.curl}/bin/curl -sS -XGET "${playlistAPI}/recent" | tac | head
|
||||||
|
|||||||
Reference in New Issue
Block a user