https://github.com/sidtr0/f1-radio-bot
A Discord bot with the sole function of getting the radio messages from the latest Formula 1 session.
https://github.com/sidtr0/f1-radio-bot
discord formula1
Last synced: 7 months ago
JSON representation
A Discord bot with the sole function of getting the radio messages from the latest Formula 1 session.
- Host: GitHub
- URL: https://github.com/sidtr0/f1-radio-bot
- Owner: sidtr0
- License: mit
- Created: 2022-03-22T06:07:34.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-25T11:10:17.000Z (over 3 years ago)
- Last Synced: 2025-01-27T22:37:55.316Z (8 months ago)
- Topics: discord, formula1
- Language: JavaScript
- Homepage:
- Size: 1.62 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# F1 Radio Bot
A Discord bot with the sole function of getting the radio messages from the latest Formula 1 session.
## How to setup
To get the bot running locally, first of all, clone the repo:
```
git clone https://github.com/DracTheDino/f1-radio-bot.git
```Make sure you have NodeJS and NPM installed. Install dependencies with NPM:
```sh
npm i
```Make a new file called `.env` and get your Discord bot token from your Discord developer page. Fill your `.env` file like so:
```env
TOKEN=your-token-here
```You should be good to go, run the bot:
```sh
node src/index.js
# or
npm i -g nodemon
nodemon src/index.js
```## How to use
To get the latest message in a session, use `/getradio` with no arguments

If you want to get the `n`th radio message in a session, use `/getradio index: n`. For example: to get the first 5th radio in a session, use `/getradio index: 5`.

If you want to get radios starting from the current time, you would use a negative number. For example: `/getradio index: -5`. This will get the 5th radio going back from the current time.

## Todo
- [x] Allow positive numbers to search from beginning and negative numbers to search from the end of radio array
- [ ] Allow searching for radios from specific drivers
- [ ] Speech to text support? 🤔If you have specific features in mind, contact me on Discord (@Drac#9999) or make a new issue here. This is a very barebones bot but I'd love to improve upon it.