16 lines
476 B
TypeScript
16 lines
476 B
TypeScript
// Až se bot načte tak to napíše do konzole a jestli pošel, tak to oznámí adminovi
|
|
|
|
import { Client } from "discord.js";
|
|
|
|
module.exports = {
|
|
on_ready: async () => {
|
|
console.log("A jedeš!");
|
|
if (process.argv.length < 3) return;
|
|
const client: Client = module.exports.client;
|
|
const admin = client.users.cache.get(process.env.ADMIN_ID ?? "");
|
|
if (!admin) return;
|
|
await admin.createDM();
|
|
admin.dmChannel?.send("pošel jsem ty magore");
|
|
}
|
|
};
|