mirror of
https://github.com/kmein/niveum
synced 2026-03-30 01:01:10 +02:00
chore: nixfmt
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
nachtischsatan-bot = { token }: pkgs.writers.writePython3 "nachtischsatan-bot" {
|
||||
libraries = [ pkgs.python3Packages.python-telegram-bot ];
|
||||
} ''
|
||||
import random
|
||||
import time
|
||||
nachtischsatan-bot = { token }:
|
||||
pkgs.writers.writePython3 "nachtischsatan-bot" {
|
||||
libraries = [ pkgs.python3Packages.python-telegram-bot ];
|
||||
} ''
|
||||
import random
|
||||
import time
|
||||
|
||||
from telegram.ext import Updater, MessageHandler
|
||||
from telegram.ext.filters import Filters
|
||||
from telegram.ext import Updater, MessageHandler
|
||||
from telegram.ext.filters import Filters
|
||||
|
||||
|
||||
def flubber(bot, update):
|
||||
time.sleep(random.randrange(4000) / 1000)
|
||||
update.message.reply_text("*flubberflubber*")
|
||||
def flubber(bot, update):
|
||||
time.sleep(random.randrange(4000) / 1000)
|
||||
update.message.reply_text("*flubberflubber*")
|
||||
|
||||
|
||||
updater = Updater(
|
||||
'${token}'
|
||||
)
|
||||
updater = Updater(
|
||||
'${token}'
|
||||
)
|
||||
|
||||
updater.dispatcher.add_handler(MessageHandler(Filters.all, flubber))
|
||||
updater.dispatcher.add_handler(MessageHandler(Filters.all, flubber))
|
||||
|
||||
updater.start_polling()
|
||||
updater.idle()
|
||||
'';
|
||||
in
|
||||
{
|
||||
updater.start_polling()
|
||||
updater.idle()
|
||||
'';
|
||||
in {
|
||||
systemd.services.telegram-nachtischsatan = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
description = "*flubberflubber*";
|
||||
|
||||
Reference in New Issue
Block a user