pavel is online
This commit is contained in:
parent
b891e73bc7
commit
f58309743f
@ -1,12 +1,12 @@
|
||||
// Komandy nebo handelery který se nikam jinam nehodí
|
||||
|
||||
import { getVoiceConnections } from "@discordjs/voice";
|
||||
import { Client, Message, User } from "discord.js";
|
||||
import { Client, Message, Presence, TextChannel, User } from "discord.js";
|
||||
import { emouty } from "../utils/emotes";
|
||||
import { createServer } from "http";
|
||||
import { Modul } from "../utils/types";
|
||||
import fetch from "node-fetch";
|
||||
import { formatCas, log, sendDM } from "../utils/utils";
|
||||
import { formatCas, log, prefix, sendDM } from "../utils/utils";
|
||||
|
||||
let spim = false;
|
||||
|
||||
@ -51,7 +51,6 @@ const exp: Modul = {
|
||||
pos: 0,
|
||||
fun: (mes: Message) => {
|
||||
const cont = mes.content.toLowerCase();
|
||||
const prefix = process.env.prefix || "more";
|
||||
if (cont == `${prefix} zapni se`) {
|
||||
if (spim) {
|
||||
spim = false;
|
||||
@ -102,6 +101,15 @@ const exp: Modul = {
|
||||
if (bef.avatar == aft.avatar) return;
|
||||
|
||||
sendDM(aft, "cus bracho vydim ze sis zmenim profilofku na dalsi mrdku estli chces abi se ukazovala na na v3ech sr4kach kterz sou na dedfis.cy tak se tam prosymte prihlas haby se mohla zmnenit syk");
|
||||
},
|
||||
|
||||
on_userPresenceUpdate: (bef: Presence | null, aft: Presence) => {
|
||||
if (aft.user?.id != "355053867265818635" || bef?.status == "online" || aft.status != "online") return;
|
||||
|
||||
const client = module.exports.client as Client;
|
||||
|
||||
(client.channels.cache.get("555779161067749448") as TextChannel)
|
||||
.send("https://tenor.com/view/pavel-is-online-gif-21604335");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user