Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
初始提交
  • Loading branch information
clpsclps authored Nov 14, 2021
1 parent 75c3827 commit b9e0d7f
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
74 changes: 74 additions & 0 deletions discord.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
const Discord = require('discord.js');
const { token } = require('./token.json');
const client = new Discord.Client();


client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
console.log('bot status', client.user.presence.status);
console.log('bot is start now');
console.log('if you want to stop bot , please close this window :)');
client.user.setActivity("輸入 a#help 取得幫助 V1.1");


});

client.on('message', msg => {

if (msg.content === '@everyone') {

msg.channel.send('@everyone');
}
});

client.on('message', msg => {

if (msg.content === 'a#help') {

msg.channel.send('請輸入a#anti開始炸服,邀請連結請輸入a#inv,指令列表請輸入a#com(如因使用此炸群機器人造成他人的損失/麻煩, 我們將恕不負責。)');
}
});

client.on('message', msg => {

if (msg.content === 'a#anti') {

msg.channel.send('@everyone');
}
});

client.on('message', msg => {

if (msg.content === 'ping') {

msg.channel.send('pong🏓');
}
});

client.on('message', msg => {

if (msg.content === 'yee') {

msg.channel.send('yee');
}
});

client.on('message', msg => {

if (msg.content === 'a#inv') {

msg.channel.send('目前不開放邀請連結');
}
});

client.on('message', msg => {

if (msg.content === 'a#com') {

msg.channel.send('網頁製作中');
}
});



client.login(token);
1 change: 1 addition & 0 deletions start.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node discord.js

0 comments on commit b9e0d7f

Please sign in to comment.