Created
January 30, 2019 18:35
-
-
Save SpookNyan/ce84e078fc60c7af1183cb7f253b621b to your computer and use it in GitHub Desktop.
MyBot Base
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require('discord.js'); | |
const bot = new Discord.Client(); | |
bot.login('NDQ0NDA0MzQ4NTY3NjgzMDky.Ddbezw.3-bdoiwURSUBZT6YKpy59b7lzQg'); | |
bot.on('message', message => { | |
let ResponseObject = { | |
"oi" : "Cala a Poha da Boca", | |
"7w7" : "Safado", | |
"kek" : "Fds" | |
}; | |
if (ResponseObject[message.content]){ | |
message.channel.send(ResponseObject[message.content]); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "mybot", | |
"version": "1.0.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
"async-limiter": { | |
"version": "1.0.0", | |
"resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", | |
"integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==" | |
}, | |
"discord.js": { | |
"version": "11.3.2", | |
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-11.3.2.tgz", | |
"integrity": "sha512-Abw9CTMX3Jb47IeRffqx2VNSnXl/OsTdQzhvbw/JnqCyqc2imAocc7pX2HoRmgKd8CgSqsjBFBneusz/E16e6A==", | |
"requires": { | |
"long": "4.0.0", | |
"prism-media": "0.0.2", | |
"snekfetch": "3.6.4", | |
"tweetnacl": "1.0.0", | |
"ws": "4.1.0" | |
} | |
}, | |
"long": { | |
"version": "4.0.0", | |
"resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", | |
"integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" | |
}, | |
"prism-media": { | |
"version": "0.0.2", | |
"resolved": "https://registry.npmjs.org/prism-media/-/prism-media-0.0.2.tgz", | |
"integrity": "sha512-L6yc8P5NVG35ivzvfI7bcTYzqFV+K8gTfX9YaJbmIFfMXTs71RMnAupvTQPTCteGsiOy9QcNLkQyWjAafY/hCQ==" | |
}, | |
"safe-buffer": { | |
"version": "5.1.2", | |
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", | |
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" | |
}, | |
"snekfetch": { | |
"version": "3.6.4", | |
"resolved": "https://registry.npmjs.org/snekfetch/-/snekfetch-3.6.4.tgz", | |
"integrity": "sha512-NjxjITIj04Ffqid5lqr7XdgwM7X61c/Dns073Ly170bPQHLm6jkmelye/eglS++1nfTWktpP6Y2bFXjdPlQqdw==" | |
}, | |
"tweetnacl": { | |
"version": "1.0.0", | |
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.0.tgz", | |
"integrity": "sha1-cT2LgY2kIGh0C/aDhtBHnmb8ins=" | |
}, | |
"ws": { | |
"version": "4.1.0", | |
"resolved": "https://registry.npmjs.org/ws/-/ws-4.1.0.tgz", | |
"integrity": "sha512-ZGh/8kF9rrRNffkLFV4AzhvooEclrOH0xaugmqGsIfFgOE/pIz4fMc4Ef+5HSQqTEug2S9JZIWDR47duDSLfaA==", | |
"requires": { | |
"async-limiter": "1.0.0", | |
"safe-buffer": "5.1.2" | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "mybot", | |
"version": "1.0.0", | |
"description": "Anni", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "Anni", | |
"license": "ISC", | |
"dependencies": { | |
"discord.js": "^11.3.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment