Add files via upload

This commit is contained in:
Sophia Atkinson 2020-08-20 00:02:05 -07:00 committed by GitHub
parent 6ca7e7c045
commit f213036127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 0 deletions

5
config.json Normal file
View File

@ -0,0 +1,5 @@
{
"prefix": "!",
"token": "!"
}

23
index.js Normal file
View File

@ -0,0 +1,23 @@
const Discord = require('discord.js');
const { prefix, token } = require('./config.json');
const client = new Discord.Client();
client.once('ready', () => {
console.log('Ready')
client.user.setActivity("$help", {
type: "STREAMING",
url: "https://www.twitch.tv/user"
});
})
client.on('message', message => {
console.log(message.content);
//Help Cmd
if (message.content.startsWith(`${prefix}test`))
message.channel.send("This test works")
})
client.login(token);

2
run.cmd Normal file
View File

@ -0,0 +1,2 @@
node index.js