Start Up

import * as dotenv from 'dotenv';
import * as IA from 'ifyapi';
dotenv.config();


async function main() {
    IA.shutdown(); // Complete shutdown of all running bots.
    IA.startBot('telegram', 'discord'); // Launching specific projects, you can select either all platforms at once or just one.
    IA.restartBot('telegram', 'discord') // To reboot a specific platform, you can select either all platforms at once or just one.
    IA.stopBot('telegram', 'discord') // Disabling certain platforms, you can select either all platforms at once or just one.
}

main().catch(error => {
    console.error('An unhandled error occurred:', error);
    process.exit(1); 
});

Last updated

Was this helpful?