mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-20 23:44:46 +12:00
chore: remove cron
This commit is contained in:
parent
6b2c3fb9d0
commit
e53b94c979
2 changed files with 3 additions and 29 deletions
|
@ -1,29 +0,0 @@
|
||||||
import { get } from '@vercel/edge-config';
|
|
||||||
import { NextResponse } from 'next/server';
|
|
||||||
|
|
||||||
export const runtime = 'edge';
|
|
||||||
|
|
||||||
export async function GET() {
|
|
||||||
try {
|
|
||||||
const url = await get<string>('DISCORD_WEBHOOK_URL');
|
|
||||||
const imageUrl = await get<string>('IT_IS_WEDNESDAY_MY_DUDES');
|
|
||||||
if (url && imageUrl) {
|
|
||||||
await fetch(url, {
|
|
||||||
method: 'POST',
|
|
||||||
headers: { 'Content-Type': 'application/json' },
|
|
||||||
body: JSON.stringify({
|
|
||||||
username: 'It is wednesday, my dudes',
|
|
||||||
embeds: [
|
|
||||||
{
|
|
||||||
image: {
|
|
||||||
url: imageUrl,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} catch {}
|
|
||||||
|
|
||||||
return NextResponse.json({ message: 'It is wednesday, my dudes' });
|
|
||||||
}
|
|
|
@ -47,6 +47,9 @@ export default defineConfig({
|
||||||
'a > img': {
|
'a > img': {
|
||||||
display: 'inline-block',
|
display: 'inline-block',
|
||||||
},
|
},
|
||||||
|
'a > img[height="44"]': {
|
||||||
|
height: '44px',
|
||||||
|
},
|
||||||
h1: {
|
h1: {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
'place-items': 'center',
|
'place-items': 'center',
|
||||||
|
|
Loading…
Reference in a new issue