Made somethings more easy to understand

This commit is contained in:
Sophia Atkinson 2020-12-23 19:10:06 -08:00 committed by GitHub
parent d022802fee
commit 9ff4e8c409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -6,17 +6,20 @@ client.once('ready', () => {
console.log('Ready')
client.user.setActivity("!help", {
//STREAMING,WATCHING,LISTENING,PLAYING
type: "STREAMING",
//Only for streaming ↓
url: "https://www.twitch.tv/user"
});
})
client.on('message', message => {
console.log(message.content);
//If you want to log every message from every server, remove the // below
//console.log(message.content);
//prefix you set in config.json ↓
if (message.content.startsWith(`${prefix}test`))
message.channel.send("This test works")
//ban
//ban
if (message.content.startsWith(`${prefix}ban`)) {
if (!message.guild.member(message.author).hasPermission('BAN_MEMBERS')) { return message.channel.send('You do not have permission to ban users!'); }