discord

const Discord = require('discord.js');
const client = new Discord.Client();

client.on('ready', () => {
    console.log(`Logged in as ${client.user.tag}.`);
});

client.on('message', message => {
    if (message.content.toLowerCase() === 'ping') {
        message.channel.send('Pong');
    }
});

client.login('TOKEN');

0
0

                                    discord is a nice place to get help for your code :)
(or watch some weird stuff idk)

0
0
3.67
9

                                    discordooo

it was me dio

3.67 (9 Votes)
0
3.7
10
Deft_code 85 points

                                    Its not worth it, kid.

3.7 (10 Votes)
0
3.33
3
Peter Tran 125 points

                                    //Look, genuinely, I get it. You're tired of looking at text generated by 
yourself or a computer. But you have a deadline and *Really* need to at least
START hacking if you want to keep your livelihood.

3.33 (3 Votes)
0
0
4

                                    a good place

0
0
3.71
7
Hjk92 85 points

                                    Nice Chatting! :D
Remember to Pratice your coding After

3.71 (7 Votes)
0
4.25
4

                                    discord.gg/amogus lol

4.25 (4 Votes)
0
4
7

                                    a super awesome resource
go find some programmers to talk to!

4 (7 Votes)
0
4.25
4
Cu39 90 points

                                    best chatting platform I have ever seen

4.25 (4 Votes)
0
Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source