78});
79
80export default app.fetch;
41 });
42 });
43 return app.fetch(req);
44});
1import { email } from "https://esm.town/v/std/email";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export async function dailyDadJoke() {
5 let { setup, punchline } = await fetchJSON("https://official-joke-api.appspot.com/random_joke");
6 return email({
7 text: punchline,
78});
79
80export default app.fetch;
1import { discordFetch } from "https://esm.town/v/vtdocs/discordFetch?v=10";
2
3const recipientId = "420257368417239041";
6const botToken = Deno.env.get("discordBot");
7
8const DM = await discordFetch(
9 botToken,
10 "/users/@me/channels",
16console.log(DM);
17// Then, we send a message via the DM
18const result = await discordFetch(
19 botToken,
20 `/channels/${DM.id}/messages`,
73
74 // Send the POST request
75 const response = await fetch("https://dreaminterpreteraibackend.com/dream", {
76 method: "POST",
77 headers: {
87 "Sec-Ch-Ua-Mobile": "?0",
88 "Sec-Ch-Ua-Platform": "\"macOS\"",
89 "Sec-Fetch-Dest": "empty",
90 "Sec-Fetch-Mode": "cors",
91 "Sec-Fetch-Site": "cross-site",
92 "Uid": randomUuid(),
93 "User-Agent":
7 body.append("client_secret", Deno.env.get("NOTEHUB_CLIENT_SECRET"));
8
9 const res = await fetch("https://notehub.io/oauth2/token", {
10 method: "POST",
11 headers: {
22 try {
23 const token = await authenticate();
24 const res = await fetch(
25 `https://api.notefile.net/v1/projects/${projectUID}/devices/${deviceUID}/notes/${fileName}`,
26 {
78});
79
80export default app.fetch;
78});
79
80export default app.fetch;
6 expire_time: string;
7 user_data: object;
8 } = await fetch("https://auth.aliyundrive.com/v2/account/token", {
9 method: "POST",
10 headers: {
26
27export function signInList(access_token: string) {
28 return fetch("https://member.aliyundrive.com/v1/activity/sign_in_list?_rx-s=mobile", {
29 method: "POST",
30 headers: {
53
54export async function signInReward(access_token: string, signInDay: number /* æœ¬æœˆç¬¬å‡ æ¬¡ç¾åˆ° */) {
55 const res = await fetch("https://member.aliyundrive.com/v1/activity/sign_in_reward?_rx-s=mobile", {
56 method: "POST",
57 headers: {