Skip to content

Wakeful-Cloud/discord-ics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published