-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.js
More file actions
45 lines (32 loc) · 1.14 KB
/
bot.js
File metadata and controls
45 lines (32 loc) · 1.14 KB
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
const Discord = require('discord.js');
const client = new Discord.Client();
console.log("Scrpit By Dream");
client.on("ready", () => {
let channel = client.channels.get("523130993234804740")
setInterval(function() {
channel.send(`** spaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaam **`);
}, 30)
})
client.on('message', message => {
var prefix = "1-";
if (message.author.bot) return;
if (!message.content.startsWith(prefix)) return;
let command = message.content.split(" ")[0];
command = command.slice(prefix.length);
let args = message.content.split(" ").slice(1);
// -say
if (command === "say") {
message.delete()
message.channel.sendMessage(args.join(" ")).catch(console.error);
}
if (command == "embed") {
let say = new Discord.RichEmbed()
.setThumbnail(message.author.avatarURL)
.setAuthor(message.author.username)
.setDescription(args.join(" "))
.setColor(0x06DF00)
message.channel.sendEmbed(say);
message.delete();
}
});
client.login("NTIzMTI4MTM3NDY3NDI4ODY1.DvVBBg.kLwbq0X0brl0IcqzhjOpwBGX57E");