mirror of
https://github.com/MrUnknownDE/UnknownBot.git
synced 2026-04-06 00:31:59 +02:00
Merge branch 'master' of https://github.com/MrUnknownDE/UnknownBot
This commit is contained in:
19
run.js
19
run.js
@@ -1 +1,18 @@
|
||||
// Start my Discord on NodeJS xD
|
||||
// Start my Discord on NodeJS xD
|
||||
const Discord = require('discord.js');
|
||||
const client = new Discord.Client();
|
||||
|
||||
client.on('ready', () => {
|
||||
console.log(`Logged in as ${client.user.tag}!`);
|
||||
});
|
||||
|
||||
client.on('message', msg => {
|
||||
if (msg.content === 'unk.ping') {
|
||||
msg.reply('Pong!');
|
||||
}
|
||||
if (msg.content === 'unk.help') {
|
||||
msg.reply('Help');
|
||||
}
|
||||
});
|
||||
|
||||
client.login('token');
|
||||
Reference in New Issue
Block a user