This commit is contained in:
Sarimoko 2022-02-25 03:00:44 -08:00
parent e5f337e491
commit 0742771f0a
1 changed files with 20 additions and 6 deletions

View File

@ -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);