Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Like discord.js and typing #5

Closed
EdamAme-x opened this issue Aug 18, 2024 · 1 comment
Closed

Like discord.js and typing #5

EdamAme-x opened this issue Aug 18, 2024 · 1 comment
Assignees

Comments

@EdamAme-x
Copy link
Member

EdamAme-x commented Aug 18, 2024

const bot = new Client();

bot.on('ready',()=>{console.log('Logged in as ' + bot.user.displayName)})

bot.on('message',(message)=>{
    if(message.author.id == bot.user.id) return;
    if(message.content == 'ping') {
        return message.channel.send('pong')
    }
})

bot.login()
@EdamAme-x
Copy link
Member Author

resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant