This commit is contained in:
2024-12-30 22:45:41 +01:00
parent 182ce5af6b
commit 8935e141d2
6 changed files with 232 additions and 154 deletions

View File

@@ -25,7 +25,11 @@ export default class DiscordController extends EventEmitter {
this.medicationService = new MedicationService();
// log when running
client.once("ready", async () => {
console.log("hello :)");
client.user?.setActivity("HALLOOO HOERT IHR MICH?", { type: 4 });
console.log("set activity");
client.user?.setPresence({
status: "idle",
});
/*const channels = client.channels;
const channel = channels.cache.get(config.discord.channelId);
@@ -36,6 +40,7 @@ export default class DiscordController extends EventEmitter {
});
}*/
});
// listen for interactions
client.on("interactionCreate", this.handleInteraction.bind(this));
}