-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
BinaryBotBlankey.js
41 lines (26 loc) · 1.09 KB
/
BinaryBotBlankey.js
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
const fs = require('fs');
const { Client, Collection, GatewayIntentBits, Partials, EmbedBuilder, Permissions } = require('discord.js');
const { token } = require('./configtoki.json');
const { Guilds, GuildMembers, MessageContent, GuildMessages } = GatewayIntentBits;
const { User, Message, Channel, GuildMember } = Partials;
const client = new Client({
intents: [Guilds, GuildMembers, GuildMessages, MessageContent],
partials: [User, Channel, Message, GuildMember],
});
const randombase2 = (min, max) => {
return Math.floor(Math.random() * (max - min + 1) + min);
}
const sendRandomMsgbase2 = () => {
client.channels.cache.get('DISCORDCHANNELID').send(randomMsgbase2[randombase2(0, randomMsgbase2.length - 1)]);
}
setInterval(function () { sendRandomMsgbase2() }, 1000 * 10 * 2 );
const randomMsgbase2 = ['0', '1']
client.on('messageCreate', (Message) => {
if (Message.channel.id == "DISCORDCHANNELID") {
fs.appendFile('ヽ(゚´Д)ノ゚base2.txt', Message.content, (err) => {
if (err) throw err;
});
}
})
console.log('༼ง ◉ _ ◉༽ง');
client.login(token);