buddy

node MVC discord bot
Log | Files | Refs | README

buddy1.js (949B)


      1 
      2 
      3 //add new youtube api feature
      4 
      5 // button up 3party.js
      6 //add git stats to code function
      7 // create an object of words for built in foas.
      8 
      9 //the Dev modules
     10 const discord = require('discord.js');
     11 const client = new discord.Client();
     12 const fetch = require('node-fetch');
     13 
     14 // the  self made modules
     15 const config = require('./config/config.js');
     16 
     17 const apiroute = require('./lib/3party.js');
     18 const processing = require('./lib/processing.js');
     19 
     20 const init = require('./events/ready.js');
     21 const message = require('./events/message.js');
     22 const member = require('./events/member.js');
     23 
     24 //below are the events
     25 
     26 //event to turn the client on  when node application is run
     27 init.startup(client);
     28 
     29 //event that a message is sent into the chat
     30 message.internalResponse(client, processing);
     31 
     32 //event that a new member joins
     33 member.newmember(client)
     34 
     35 //event to log the bot into its account
     36 client.login(config.discordkey.login)