add copypasta command
This commit is contained in:
parent
e362efcb12
commit
aff7aece31
11
kaybot.py
11
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()
|
||||
|
|
|
@ -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.
|
|
@ -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!
|
Loading…
Reference in New Issue