mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-12-01 22:55:40 -05:00
33 lines
837 B
JavaScript
33 lines
837 B
JavaScript
function inject (context) {
|
|
const bot = context.bot;
|
|
const config = context.config;
|
|
const options = context.options;
|
|
const info = require('../data/info.json');
|
|
bot.on("packet.login", (data) => {
|
|
if (bot.options.mode === "creayun") return
|
|
if (new Date().getDay() === 5) {
|
|
bot.chat.message('Gettin\' freaky on a friday night!');
|
|
} else {
|
|
bot.chat.message('&9FNF&3Boyfriend&1Bot &fcreated by &4Parker&02991');
|
|
}
|
|
})
|
|
|
|
process.on('SIGINT', (data) => {
|
|
bot.chat.message('Killing bot.....');
|
|
process.exit(5);
|
|
});
|
|
|
|
setInterval(() => {
|
|
process.stdout.write(`\x1b]2; FNFBoyfriendBot | Time: ${new Date().toLocaleString("en-US",{timeZone: "America/CHICAGO"})} | \x1b\x5c`)
|
|
}, 1000)
|
|
}
|
|
|
|
module.exports = {
|
|
data: {
|
|
enabled: true,
|
|
name: "boot",
|
|
type: "start up"
|
|
},
|
|
inject
|
|
};
|