not much
This commit is contained in:
parent
94d2fc40e6
commit
78a65511c2
3
.gitignore
vendored
3
.gitignore
vendored
@ -173,3 +173,6 @@ dist
|
|||||||
|
|
||||||
# Finder (MacOS) folder config
|
# Finder (MacOS) folder config
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# DB
|
||||||
|
avocadis_diary.sqlite
|
||||||
|
BIN
mydb.sqlite
BIN
mydb.sqlite
Binary file not shown.
@ -41,7 +41,19 @@ export class DmService {
|
|||||||
const context = `<@${message.author.id}> hat geschrieben: " ${message.content} "`;
|
const context = `<@${message.author.id}> hat geschrieben: " ${message.content} "`;
|
||||||
|
|
||||||
console.log(context);
|
console.log(context);
|
||||||
client.users.send(config.discord.myId, context);
|
|
||||||
|
try {
|
||||||
|
const channels = client.channels;
|
||||||
|
const channel = channels.cache.get(config.discord.channelIdNotification);
|
||||||
|
|
||||||
|
if (channel?.isTextBased() && channel?.isSendable()) {
|
||||||
|
await channel.send(context);
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error("error while forwarding a welcome msg:", error);
|
||||||
|
}
|
||||||
|
|
||||||
|
//client.users.send(config.discord.myId, context);
|
||||||
}
|
}
|
||||||
|
|
||||||
async acceptDm(member: GuildMember) {
|
async acceptDm(member: GuildMember) {
|
||||||
|
@ -6,6 +6,7 @@ export default {
|
|||||||
|
|
||||||
// avocadi
|
// avocadi
|
||||||
serverID: process.env.DISCORD_SERVER_ID || "",
|
serverID: process.env.DISCORD_SERVER_ID || "",
|
||||||
|
channelIdNotification: process.env.DISCORD_CHANNEL_ID_NOTIFICATION || "",
|
||||||
channelIdNews: process.env.DISCORD_CHANNEL_ID_NEWS || "",
|
channelIdNews: process.env.DISCORD_CHANNEL_ID_NEWS || "",
|
||||||
channelIdFeedback: process.env.DISCORD_CHANNEL_ID_FEEDBACK || "",
|
channelIdFeedback: process.env.DISCORD_CHANNEL_ID_FEEDBACK || "",
|
||||||
channelIdIntroduction: process.env.DISCORD_CHANNEL_ID_INTRODUCTION || "",
|
channelIdIntroduction: process.env.DISCORD_CHANNEL_ID_INTRODUCTION || "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user