mirror of
https://github.com/vicr123/AstralQuote.git
synced 2025-01-22 03:41:48 -05:00
Initial code commit!
This commit is contained in:
parent
0374406c72
commit
26d2fea14a
2 changed files with 85 additions and 0 deletions
58
.gitignore
vendored
Normal file
58
.gitignore
vendored
Normal file
|
@ -0,0 +1,58 @@
|
|||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# Typescript v1 declaration files
|
||||
typings/
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
27
bot.js
Normal file
27
bot.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
const Discord = require('discord.js');
|
||||
const client = new Discord.Client();
|
||||
|
||||
client.on('ready', () => {
|
||||
console.log('ARE YA READY KIDS? AYE AYE CAPTAIN!');
|
||||
});
|
||||
|
||||
client.on('message', message => {
|
||||
if (message.content === '!ping') {
|
||||
message.channel.send('<:vtBoshyTime:280178631886635008> PING! Bot is coming soon.');
|
||||
} else if (message.content === '!isthisthingon') {
|
||||
message.channel.send('no 💤');
|
||||
} else if (message.content === '!quoteoftheday') {
|
||||
var embed = new Discord.RichEmbed();
|
||||
|
||||
embed.setAuthor("Victor Tran", "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg");
|
||||
embed.setColor("#FF0000");
|
||||
embed.setDescription("A letter says a whole video!");
|
||||
embed.setFooter("- 2017.");
|
||||
embed.setURL("https://cdn.discordapp.com/attachments/278874966542385152/280566273992032258/Screenshot_20170213-160944.png");
|
||||
|
||||
message.channel.send("Here's the quote of the day:");
|
||||
message.channel.sendEmbed(embed);
|
||||
}
|
||||
});
|
||||
|
||||
client.login('MjgwMjQ1MDAwMDI0MDk2NzY4.C4K8Nw.InlnQvRmbvfJG0nv13FXtoVzXwc');
|
Loading…
Reference in a new issue