mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-04-25 15:36:31 -05:00
20 lines
338 B
JavaScript
20 lines
338 B
JavaScript
import dotenv from 'dotenv';
|
|
import cron from './cron.mjs';
|
|
import { sendTweets } from './twitter/index.mjs';
|
|
|
|
dotenv.config();
|
|
|
|
const actions = {
|
|
cron,
|
|
twitter: sendTweets,
|
|
}
|
|
|
|
const command = process.argv[2];
|
|
const action = actions[command];
|
|
if (action) {
|
|
action();
|
|
} else {
|
|
console.error(`Unrecognized command: ${command}`);
|
|
}
|
|
|