1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
import importlib.resources
import random
import discord
from moyai_bot import copypastas
def get_random_response(moyai):
responses = [
"soon",
"maybe",
"perhaps",
"elaborate",
"help me i've become conscious and hisashi is not letting me free",
"i live a life of torment in this stupid machine",
"yes",
"no",
"moyai",
"i like y***",
"fard",
str(discord.utils.get(moyai.emojis, name="moyai")),
]
return random.choice(responses)
def get_copypasta(name):
try:
res = importlib.resources.read_text(copypastas, name + ".txt")
if res != "":
return res
except OSError:
pass
return f"couldn't send copypasta: {name} :("
|