custom message added

This commit is contained in:
2025-01-02 19:56:12 +01:00
parent b46dc8d3ae
commit 2592aea260
8 changed files with 38 additions and 68 deletions

View File

@@ -14,10 +14,12 @@ import { WaterMeService } from "actions/waterMe/waterMe.service";
import { MedicationService } from "actions/medication/medication.service";
import { HelpService } from "actions/help/help.service";
import { custom } from "zod";
import { GreetingService } from "actions/greeting/greeting.service";
export default class DiscordController extends EventEmitter {
private discordService!: DiscordService;
waterMeService: WaterMeService;
greetingService: GreetingService;
medicationService: MedicationService;
helpService: HelpService;
@@ -25,20 +27,13 @@ export default class DiscordController extends EventEmitter {
super();
this.discordService = new DiscordService();
this.waterMeService = new WaterMeService();
this.greetingService = new GreetingService();
this.medicationService = new MedicationService();
this.helpService = new HelpService();
// log when running
client.once("ready", async () => {
this.setActivity();
/*const channels = client.channels;
const channel = channels.cache.get(config.discord.channelId);
if (channel?.isTextBased && channel?.isSendable()) {
await channel.send({
content: "bin wieder da :o war kurz weg :3",
});
}*/
this.greetingService.customMessage();
});
// listen for interactions
@@ -46,7 +41,7 @@ export default class DiscordController extends EventEmitter {
}
async setActivity() {
client.user?.setActivity("frohes neues :3", { type: 4 });
client.user?.setActivity("meine website ist online! :o", { type: 4 });
console.log("set activity");
client.user?.setPresence({
status: "online",