
5 changed files with 48 additions and 0 deletions
@ -0,0 +1,14 @@
|
||||
{ |
||||
// Use IntelliSense to learn about possible Node.js debug attributes. |
||||
// Hover to view descriptions of existing attributes. |
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
||||
"version": "0.2.0", |
||||
"configurations": [ |
||||
{ |
||||
"type": "node", |
||||
"request": "launch", |
||||
"name": "Launch Program", |
||||
"program": "${workspaceRoot}/wrapper.js" |
||||
} |
||||
] |
||||
} |
@ -0,0 +1,9 @@
|
||||
//acts as on ready function
|
||||
module.exports = (client) => { |
||||
client.on("message", message => message.reply("Hello!")); |
||||
//check messages in channel for links posted since last online
|
||||
|
||||
//set up an interval to check all the feeds
|
||||
|
||||
//set up an on message handler to detect when links are posted
|
||||
}; |
@ -0,0 +1,18 @@
|
||||
const Discord = require("discord.js"); |
||||
const Util = require("discordjs-util"); |
||||
|
||||
const client = new Discord.Client(); |
||||
|
||||
process.on("uncaughtException", (err) => { |
||||
Util.dateError(err); |
||||
}); |
||||
|
||||
client.login(require("./token.json").token); |
||||
|
||||
client.on("ready", () => { |
||||
require("./app/index.js")(client); |
||||
}); |
||||
|
||||
client.on("disconnect", eventData => { |
||||
Util.dateError(eventData.code, eventData.reason); |
||||
}); |
Loading…
Reference in new issue