This repository has been archived on 2022-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
2020-08-20 00:02:05 -07:00
|
|
|
const Discord = require('discord.js');
|
|
|
|
const { prefix, token } = require('./config.json');
|
|
|
|
const client = new Discord.Client();
|
|
|
|
|
|
|
|
client.once('ready', () => {
|
|
|
|
console.log('Ready')
|
|
|
|
|
2020-08-20 04:59:06 -07:00
|
|
|
client.user.setActivity("!help", {
|
2020-08-20 00:02:05 -07:00
|
|
|
type: "STREAMING",
|
|
|
|
url: "https://www.twitch.tv/user"
|
|
|
|
});
|
|
|
|
})
|
|
|
|
client.on('message', message => {
|
|
|
|
console.log(message.content);
|
2020-08-27 03:32:57 -07:00
|
|
|
|
2020-08-20 00:02:05 -07:00
|
|
|
if (message.content.startsWith(`${prefix}test`))
|
|
|
|
message.channel.send("This test works")
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-20 04:59:06 -07:00
|
|
|
client.login(token);
|