Installation
caution
UNDER CONSTRUCTION
Clone the repository
If you're new to git, cloning is kind of like downloading.
In your terminal, navigate to where you want to store this, and future, projects. Then, git clone
the repository.
Alternatively, you could use VSCode to clone and open skylink-if.
Install dependencies
I like to use yarn
for dependency management, but you can use npm
if you prefer.
Create /config/config.json
The easiest thing to do is contact a maintainer of the project and ask them to create a config file for you. But if you're on your own, follow these instructions:
- Create a discord bot
- Create a bot token
- Get an Infinite Flight Live API Key
- Copy the
config.example.json
file and name itconfig.json
. - Populate all fields named
<field>
with the appropriate values.
Register /slash commands
Discord slash commands are a new way to create commands for your Discord bot. They are new and Discord has made it clear that they want slash commands to be used as much as possible. You can read more about them here.
Run the bot
Running the bot isn't just about making it active and listening for commands, it also starts running scheduled jobs such as notifications for active Infinite Flight users.
If you want to play with the bot, create a test server and invite your bot to it.