Skip to content

Instantly share code, notes, and snippets.

return (
<div className='App'>
<Arrow
direction='left'
clickFunction={() => onArrowClick('left')}
/>
<Slide in={slideIn} direction={slideDirection}>
<div>
<CarouselSlide content={content} />
</div>
useEffect(() => {
const handleKeyDown = (e) => {
if (e.keyCode === 39) {
onArrowClick('right');
}
if (e.keyCode === 37) {
onArrowClick('left');
}
};
const SlackBot = require('slackbots');
const dotenv = require('dotenv');
const cron = require('node-cron');
dotenv.config();
BOT_TOKEN=[your-copied-token]
const bot = new SlackBot({
token: `${process.env.BOT_TOKEN}`,
name: '[your-app-name]',
});
bot.on('start', function () {
bot.postMessageToUser('[your-username]', '[your-app-name] starting...');
});
function createJob() {
const task = cron.schedule(
'32 12 * * 1-5',
() => {
bot.postMessageToChannel('lunchbot-test', 'go eat lunch ali');
},
{
scheduled: true,
timezone: 'America/New_York',
}
bot.on('start', function () {
bot.postMessageToUser('[your-username]', '[your-app-name] starting...');
createJob();
});
{
"name": "Google Calendar Navigation Shortcuts",
"version": "1.0",
"description": "Add arrow navigation to Google Calendar",
"manifest_version": 2
}
"icons": {
"16": "assets/icon.png",
"48": "assets/icon.png",
"128": "assets/icon.png"
},
"permissions": ["https://calendar.google.com/*"],