Wakeful-Cloud / discord-ics

Discord bot to import an ICS file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord ICS

Discord bot to import an ICS file

Documentation

Environment Variables

Name Required Description
DISCORD_TOKEN Discord bot token
DISCORD_SERVER Discord server ID
ICS_URL Publicly accessible ICS file URL
SYNCHRONIZATION_LIMIT ❌ (Defaults to 604800 or 1 week) Number of seconds into the future to synchronize events during

Use

  1. Create an application in the Discord Developer portal
  2. Enable bot functionality
  3. Go to https://discord.com/api/oauth2/authorize?client_id=[Application ID]&permissions=8589934592&scope=bot (Replace [Application ID] with the value in the portal)
  4. Create a .env file or update your environment (See the Environment Variables documentation)
  5. Install all modules with:
npm install
  1. Run the bot:
npm run start

FAQ's

  • Q: Does this bot synchronize the calendar once-off or on a regular schedule?
  • A: Once-off. I am working on a bot that can repeatedly synchronize the calendar (without creating duplicate events). As a temporary workaround, you can set a low SYNCHRONIZATION_LIMIT (eg: 1 day) and run the bot more frequently (Though you'll only see events nearer to when they occur).
  • Q: I ran the bot several times. Why did I get duplicate events?
  • A: The bot doesn't track what events it's already created, so it doesn't know whether or not it's already created an event.

About

Discord bot to import an ICS file

License:MIT License


Languages

Language:TypeScript 100.0%