Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xevion/r2park
A discord bot for quickly registering parking with Register2Park
https://github.com/xevion/r2park
discord discord-bot discordgo go guest parking r2park register2park registration
Last synced: about 20 hours ago
JSON representation
A discord bot for quickly registering parking with Register2Park
- Host: GitHub
- URL: https://github.com/xevion/r2park
- Owner: Xevion
- License: gpl-3.0
- Created: 2023-12-12T07:35:30.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-19T14:10:16.000Z (about 1 year ago)
- Last Synced: 2023-12-19T17:15:14.952Z (about 1 year ago)
- Topics: discord, discord-bot, discordgo, go, guest, parking, r2park, register2park, registration
- Language: Go
- Homepage:
- Size: 131 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# r2park-bot
A Discord bot for easily registering parking at the Register2Park parking system.
## Setup
Environment variables are the preferred way of authenticating the bot's various connections. Place a `.env` file in the root of the project with the following variables:
```
BOT_TOKEN=
BOT_TARGET_GUILD=
REDIS_HOST=
REDIS_PASSWORD=
```## Process
- Invoke the registration command on any location.
- If a guest code is required, the bot will error and prompt for it.
- If not required, or if invoked with a guest code, the bot will query R2P for the location's registration fields, such as make/model/plate/aptnum.
- The user will then be prompted with a modal containing the registration form.
- Once submitted, all details will be sent to R2P, the user will be notified of success, and the details entered will be preserved.
- The user can then re-use the same details for any other location, or re-register the same location with the same details.## Feature Ideas
- Register commands in new guilds automatically
- Cache location data for fast autocomplete lookup
- Responses are not sent in the same channel, but instead as a hidden message.
- No code stored with a location can be re-tried after registering a code later.
- Scanning abilities for validating the form structure of all locations Register2Park moderates.
- Ability to forget details registered with a location once, or always for a user.