Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js')
- const client = new Discord.Client()
- const config = require('./config.json')
- const fs = require('fs')
- client.on('ready', () => {
- console.log(`Loggin in as ${client.user.tag}!`);
- });
- client.on('message',async message => {
- const args = message.content.slice(config.Prefix.length).trim().split(/ +/g);
- const command = args.shift().toLowerCase();
- if (command == 'test') {
- message.reply('Hello')
- }
- });
- client.login(config.Token);
Add Comment
Please, Sign In to add comment