From aff7aece31b0f8e2cac3cefd7b5435055b55ffe4 Mon Sep 17 00:00:00 2001 From: KayFaraday Date: Wed, 21 Dec 2022 00:59:28 +0000 Subject: [PATCH] add copypasta command --- kaybot.py | 11 +++++++++++ pasta/bbgooner.txt | 1 + pasta/porn-and-hentai.txt | 4 ++++ 3 files changed, 16 insertions(+) create mode 100644 pasta/bbgooner.txt create mode 100644 pasta/porn-and-hentai.txt diff --git a/kaybot.py b/kaybot.py index d4e80b7..453298e 100755 --- a/kaybot.py +++ b/kaybot.py @@ -2,6 +2,7 @@ from pleroma_bot import PleromaBot from mastodon import Mastodon +from pathlib import Path import qtoml as toml with open('config.toml') as f: @@ -15,5 +16,15 @@ def ping(notif, *_): """Replies with “pong”""" pleroma.status_reply(notif['status'], 'Pong!') +pastas = {p.stem: p.read_text() for p in Path('pasta').glob('*.txt')} + +@bot.command +def pasta(notif, pasta_name=''): + """Pulls up a copypasta. Run with no arguments to get a list of available copypastas.""" + if not pasta_name: + pleroma.status_reply(notif['status'], f'Available copypasta: {", ".join(pastas)}') + else: + pleroma.status_reply(notif['status'], pastas[pasta_name]) + if __name__ == '__main__': bot.run() diff --git a/pasta/bbgooner.txt b/pasta/bbgooner.txt new file mode 100644 index 0000000..8bb02f1 --- /dev/null +++ b/pasta/bbgooner.txt @@ -0,0 +1 @@ +One of my favorite child porn sites got shut down recently, and you'd think i'd be upset, but no, i'm not. Child porn is gorgeous and hot, but the less of it that exists in the world, the better. it makes me happy that all that CP is gone, fallen into obscurity, it isn't history we need to preserve, we should instead preserve the pedo fantasy art, videos, and stories that help fetishists like us squirt. diff --git a/pasta/porn-and-hentai.txt b/pasta/porn-and-hentai.txt new file mode 100644 index 0000000..29ccca3 --- /dev/null +++ b/pasta/porn-and-hentai.txt @@ -0,0 +1,4 @@ +I fucking love porn and hentai, I spend everyday when I;m not at work +masturbating, I want to see more porn and hentai and I want it to fill me +entire day. I know freak.university is filled with some of the most depraved +people on the internet and I want in on it, please!