init
This commit is contained in:
parent
e5f337e491
commit
0742771f0a
|
@ -1,11 +1,25 @@
|
|||
// GAME NGIN | MMOIRC
|
||||
// ================================
|
||||
// Inside Twitch Chat an adventure is growing!
|
||||
// --------------------------------
|
||||
// View README.md for .env setup!!!
|
||||
// --------------------------------
|
||||
require('dotenv').config();
|
||||
var colors = require('colors');
|
||||
var mysql = require('mysql');
|
||||
// Twitch API
|
||||
const tmi = require('tmi.js');
|
||||
// Discord API
|
||||
const { Client, Intents } = require('discord.js');
|
||||
const client = new Client({ intents: [Intents.FLAGS.GUILDS] });
|
||||
client.on('ready', () => {
|
||||
console.log(`Logged in as ${client.user.tag}!`);
|
||||
});
|
||||
|
||||
client.on('interactionCreate', async interaction => {
|
||||
if (!interaction.isCommand()) return;
|
||||
|
||||
if (interaction.commandName === 'ping') {
|
||||
await interaction.reply('Pong!');
|
||||
}
|
||||
});
|
||||
|
||||
client.login('token');
|
||||
|
||||
// TMI Config
|
||||
// --------------------------------
|
||||
console.log(process.env.API_HOST);
|
||||
|
|
Loading…
Reference in New Issue