-
Notifications
You must be signed in to change notification settings - Fork 83
/
funtxts.py
47 lines (40 loc) · 1.12 KB
/
funtxts.py
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
35
36
37
38
39
40
41
42
43
44
45
46
47
import requests
from userbot import catub
from userbot.core.managers import edit_or_reply
plugin_category = "fun"
@catub.cat_cmd(
pattern="tcat$",
command=("tcat", plugin_category),
info={
"header": "Some random cat facial text art",
"usage": "{tr}tcat",
},
)
async def hmm(cat):
"Some random cat facial text art"
reactcat = requests.get("https://nekos.life/api/v2/cat").json()
await edit_or_reply(cat, reactcat["cat"])
@catub.cat_cmd(
pattern="why$",
command=("why", plugin_category),
info={
"header": "Sends you some random Funny questions",
"usage": "{tr}why",
},
)
async def hmm(cat):
"Some random Funny questions"
whycat = requests.get("https://nekos.life/api/v2/why").json()
await edit_or_reply(cat, whycat["why"])
@catub.cat_cmd(
pattern="fact$",
command=("fact", plugin_category),
info={
"header": "Sends you some random facts",
"usage": "{tr}fact",
},
)
async def hmm(cat):
"Some random facts"
factcat = requests.get("https://nekos.life/api/v2/fact").json()
await edit_or_reply(cat, factcat["fact"])