1
0
mirror of https://github.com/kmein/niveum synced 2026-03-31 01:31:13 +02:00

3 Commits

Author SHA1 Message Date
881aaa3f8c chore: update retiolum 2023-06-07 10:30:12 +02:00
dcd00ad602 fix(wallpaper): update url 2023-06-07 10:29:49 +02:00
56e4d710e5 fix: atuin, nachtischsatan 2023-06-07 10:27:02 +02:00
4 changed files with 14 additions and 14 deletions

View File

@@ -8,23 +8,22 @@
pkgs.writers.writePython3 "nachtischsatan-bot" {
libraries = [pkgs.python3Packages.python-telegram-bot];
} ''
from telegram.ext import Updater, MessageHandler
from telegram.ext.filters import Filters
from telegram.ext import Application, ContextTypes, MessageHandler, filters
from telegram import Update
import random
import time
def flubber(update, context):
async def flubber(update: Update, context: ContextTypes.DEFAULT_TYPE):
time.sleep(random.randrange(4000) / 1000)
update.message.reply_text("*flubberflubber*")
await update.message.reply_text("*flubberflubber*")
with open('${tokenFile}', 'r') as tokenFile:
updater = Updater(tokenFile.read().strip())
updater.dispatcher.add_handler(MessageHandler(Filters.all, flubber))
updater.start_polling()
updater.idle()
token = tokenFile.read().strip()
application = Application.builder().token(token).build()
application.add_handler(MessageHandler(filters.ALL, flubber))
application.run_polling()
'';
in {
systemd.services.telegram-nachtischsatan = {

View File

@@ -3,7 +3,7 @@
lib,
...
}: let
url = "http://prism.r/realwallpaper-krebs-stars-berlin.png";
url = "http://wallpaper.r/realwallpaper-krebs-stars-berlin.png";
stateDir = "~/.cache/wallpaper";
in {
systemd.user.services.wallpaper = {

8
flake.lock generated
View File

@@ -296,11 +296,11 @@
},
"retiolum": {
"locked": {
"lastModified": 1682697608,
"narHash": "sha256-SGhjlOQx9vDRrIxm+kyZzDjpiZDTzM3zLCLNgqWPmPY=",
"lastModified": 1686076643,
"narHash": "sha256-midjyNXeGAqXzwXKnHNsTnRwPIbturlq2FcHOh9fivg=",
"ref": "refs/heads/master",
"rev": "e0a7f5bf65c7097949d4e07aafd24aabec8d5852",
"revCount": 305,
"rev": "f79b533caf30820d93a79878d871c08faa35b3f4",
"revCount": 306,
"type": "git",
"url": "https://git.thalheim.io/Mic92/retiolum"
},

View File

@@ -30,5 +30,6 @@ in {
openFirewall = true;
openRegistration = true;
port = 8888;
enable = true;
};
}