-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogs.txt
139 lines (122 loc) · 2.99 KB
/
logs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/*
LOGZILLA TEMPLATE:
logzilla.send({embed: {
color: 0xCBFDFC(blue) or 0xFDCBCB(red) or 0xCBCBCB(grey),
description: '',
fields: [
{
name: '',
value: ''
}
],
thumbnail: {
url: ''
},
image: {
url: ''
},
timestamp: new Date()
}});
*/
//Member Join
bot.on('guildMemberAdd', (member) => {
populationchannel.setName('Members count: ' + zillaguild.memberCount);
logzilla.send({embed: {
color: 0xCBFDFC,
description: 'A new member has joined the server',
thumbnail: {
url: member.user.avatarURL
},
fields: [
{
name: member.user.username + '#' + member.user.discriminator,
value: member.user.id
}
],
timestamp: new Date()
}});
});
//Member Leave
bot.on('guildMemberRemove', (member) => {
populationchannel.setName('Members count: ' + zillaguild.memberCount);
logzilla.send({embed: {
color: 0xFDCBCB,
description: 'A member has left/been kicked from the server',
thumbnail: {
url: member.user.avatarURL
},
fields: [
{
name: member.user.username + '#' + member.user.discriminator,
value: member.user.id
}
],
timestamp: new Date(),
}});
});
//Channel create
bot.on('channelCreate', (channel) => {
logzilla.send({embed: {
color: 0xCBFDFC,
description: 'A channel has been created',
fields: [
{
name: channel.name,
value: channel.id
}
],
timestamp: new Date()
}});
});
//Channel delete
bot.on('channelDelete', (channel) => {
logzilla.send({embed: {
color: 0xFDCBCB,
description: 'A channel has been deleted',
fields: [
{
name: channel.name,
value: channel.id
}
],
timestamp: new Date()
}});
});
//Deleted Message
bot.on('messageDelete', (message) => {
logzilla.send({embed: {
color: 0xFDCBCB,
description: 'A message has been deleted in **' + message.channel.name + '**',
fields: [
{
name: 'Message:',
value: message.content
}
],
timestamp: new Date(),
footer: {
text: 'ID: ' + message.id
}
}});
});
//Edited Message
bot.on('messageUpdate', (oldMessage, newMessage) => {
logzilla.send({embed: {
color: 0xCBCBCB,
description: 'A message has been edited in **' + oldMessage.channel.name + '**',
fields: [
{
name: 'Before:',
value: oldMessage.content
},
{
name: 'After:',
value: newMessage.content
}
],
timestamp: new Date(),
footer: {
text: 'ID: ' + message.id
}
}});
});